Sha256: 5312ae1b76400ca6b06f589f6cdbba4198e2c28d891efc21f6e76f3a422fda85

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

module Awspec::Type
  class CloudwatchEvent < Base
    def initialize(id)
      super
      @resource_via_client = find_cloudwatch_event(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

9 entries across 9 versions & 1 rubygems

Version Path
awspec-0.55.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.54.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.52.4 lib/awspec/type/cloudwatch_event.rb
awspec-0.52.3 lib/awspec/type/cloudwatch_event.rb
awspec-0.52.2 lib/awspec/type/cloudwatch_event.rb
awspec-0.52.1 lib/awspec/type/cloudwatch_event.rb
awspec-0.52.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.51.0 lib/awspec/type/cloudwatch_event.rb
awspec-0.50.0 lib/awspec/type/cloudwatch_event.rb