Sha256: 6282f90427c5ba11a4e2089e3582532c7e911dca2e3891648e3c6d80d2e2de47
Contents?: true
Size: 706 Bytes
Versions: 13
Compression:
Stored size: 706 Bytes
Contents
# frozen_string_literal: true module Awspec::Type class Firehose < ResourceBase def initialize(name) super @delivery_stream_name = name end def resource_via_client @resource_via_client ||= find_delivery_stream(@delivery_stream_name) end def id @id ||= @delivery_stream_name if resource_via_client end STATES = %w[ACTIVE CREATING DELETING] STATES.each do |state| define_method "#{state.downcase}?" do resource_via_client.delivery_stream_status == state end end def has_splunk_destination? resource_via_client.destinations.find do |dest| dest.splunk_destination_description end end end end
Version data entries
13 entries across 13 versions & 1 rubygems