Sha256: 66355e5c967732239d943fc7c68fce2d9a06e2a16b5112ff5cd0df2453ceb216

Contents?: true

Size: 412 Bytes

Versions: 26

Compression:

Stored size: 412 Bytes

Contents

module Awspec::Type
  class CloudwatchEvent < Base
    def resource_via_client
      @resource_via_client ||= find_cloudwatch_event(@display_name)
    end

    def id
      @id ||= resource_via_client.arn if resource_via_client
    end

    def enable?
      resource_via_client.state == 'ENABLED'
    end

    def scheduled?(schedule)
      resource_via_client.schedule_expression == schedule
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
awspec-0.59.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.58.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.57.1 lib/awspec/type/cloudwatch_event.rb
awspec-0.57.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.56.1 lib/awspec/type/cloudwatch_event.rb
awspec-0.56.0 lib/awspec/type/cloudwatch_event.rb