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