Sha256: 93f0a0ffdb8b1d0965a7ef020ae1e3a3cd85ad22112465a8d740d7c6d9f15a45

Contents?: true

Size: 1.05 KB

Versions: 68

Compression:

Stored size: 1.05 KB

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::Events::Rule
        ##
        class EventsRule < Resource
          type 'AWS::Events::Rule'
          property :description, 'Description'
          property :domain, 'Domain'
          # Event patterns are documented as the type "JSON Object".
          # We can define it here as a Hash. Example usage of the
          # `event_pattern` method property being used can be found in
          # the EventsRule spec.
          property :event_pattern, 'EventPattern', :type => :hash
          property :name, 'Name'
          property :role_arn, 'RoleArn'
          property :schedule_expression, 'ScheduleExpression'
          property :state, 'State'
          property :targets, 'Targets', :type => :array

          def target(&block)
            target = ResourceProperty::EventsRuleTarget.new(self)
            target.instance_exec(&block) if block
            targets << target
          end
        end
      end
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
convection-2.3.1 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.3.0 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.29 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.27 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.26 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.25 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.24 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.23 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.22 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.21 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.20 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.19 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.18 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.17 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.16 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.15 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.14 lib/convection/model/template/resource/aws_events_rule.rb
convection-2.2.13 lib/convection/model/template/resource/aws_events_rule.rb