Sha256: 802b6fb028bb58b5e608f8b5d78c95af7557d76a4ff0775d49866612cff08891

Contents?: true

Size: 832 Bytes

Versions: 12

Compression:

Stored size: 832 Bytes

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'
          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

12 entries across 12 versions & 1 rubygems

Version Path
convection-0.2.32 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.31 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.30 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.29 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.28 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.27 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.26 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.25 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.24 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.23 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.22 lib/convection/model/template/resource/aws_events_rule.rb
convection-0.2.21 lib/convection/model/template/resource/aws_events_rule.rb