Class: Convection::Model::Template::Resource::EventsRule
- Inherits:
-
Convection::Model::Template::Resource
- Object
- Convection::Model::Template::Resource
- Convection::Model::Template::Resource::EventsRule
- Defined in:
- lib/convection/model/template/resource/aws_events_rule.rb
Overview
AWS::Events::Rule
Instance Attribute Summary
Attributes inherited from Convection::Model::Template::Resource
#exist, #parent, #properties, #resource_attributes, #template
Instance Method Summary collapse
- #description(value) ⇒ Object
- #domain(value) ⇒ Object
-
#event_pattern(value) ⇒ Object
Event patterns are documented as the type “JSON Object”.
- #name(value) ⇒ Object
- #role_arn(value) ⇒ Object
- #schedule_expression(value) ⇒ Object
- #state(value) ⇒ Object
- #target(&block) ⇒ Object
- #targets(value) ⇒ Object
Methods inherited from Convection::Model::Template::Resource
#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, property, #property, #reference, #render, type, #type, #with_output
Methods included from Mixin::Conditional
Methods included from DSL::Template::Resource
#_terraform_module_dir_to_flag, #_terraform_module_flag_to_dir, attach_resource, attach_resource_collection, resource_collection_dsl_methods, resource_dsl_methods
Methods included from DSL::Helpers
#camel_case, included, method_name, #screaming_snake_case, #snake_case
Methods included from DSL::IntrinsicFunctions
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select
Constructor Details
This class inherits a constructor from Convection::Model::Template::Resource
Instance Method Details
#description ⇒ Object #description(value) ⇒ Object
12 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 12 property :description, 'Description' |
#domain ⇒ Object #domain(value) ⇒ Object
13 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 13 property :domain, 'Domain' |
#event_pattern(value) ⇒ Object
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.
18 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 18 property :event_pattern, 'EventPattern', :type => :hash |
#name ⇒ Object #name(value) ⇒ Object
19 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 19 property :name, 'Name' |
#role_arn ⇒ Object #role_arn(value) ⇒ Object
20 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 20 property :role_arn, 'RoleArn' |
#schedule_expression ⇒ Object #schedule_expression(value) ⇒ Object
21 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 21 property :schedule_expression, 'ScheduleExpression' |
#state ⇒ Object #state(value) ⇒ Object
22 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 22 property :state, 'State' |
#target(&block) ⇒ Object
25 26 27 28 29 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 25 def target(&block) target = ResourceProperty::EventsRuleTarget.new(self) target.instance_exec(&block) if block targets << target end |
#targets ⇒ Object #targets(value) ⇒ Object
23 |
# File 'lib/convection/model/template/resource/aws_events_rule.rb', line 23 property :targets, 'Targets', :type => :array |