for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
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)
def id
@id ||= @delivery_stream_name if resource_via_client
STATES = %w(ACTIVE CREATING DELETING)
STATES.each do |state|
define_method state.downcase + '?' do
resource_via_client.delivery_stream_status == state
# TODO: Add one per destination type
def has_splunk_destination?
resource_via_client.destinations[0] &&
resource_via_client.destinations[0].splunk_destination_description