Class: Convection::Model::Template::Resource::ELBV2ListenerRule
- Inherits:
-
Convection::Model::Template::Resource
- Object
- Convection::Model::Template::Resource
- Convection::Model::Template::Resource::ELBV2ListenerRule
- Defined in:
- lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
Overview
AWS::ElasticLoadBalancingV2::ListenerRule
Instance Attribute Summary
Attributes inherited from Convection::Model::Template::Resource
#exist, #name, #parent, #properties, #resource_attributes, #template
Instance Method Summary collapse
-
#action(&block) ⇒ Object
Append an action.
- #actions(value) ⇒ Object
- #listener_arn(value) ⇒ Object
- #priority(value) ⇒ Object
-
#rule_condition(&block) ⇒ Object
Append a condition.
- #rule_conditions(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
#action(&block) ⇒ Object
Append an action
20 21 22 23 24 |
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 20 def action(&block) action = ResourceProperty::ELBV2ListenerRuleAction.new(self) action.instance_exec(&block) if block actions << action end |
#actions ⇒ Object #actions(value) ⇒ Object
12 |
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 12 property :actions, 'Actions', :type => :list |
#listener_arn ⇒ Object #listener_arn(value) ⇒ Object
16 |
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 16 property :listener_arn, 'ListenerArn' |
#priority ⇒ Object #priority(value) ⇒ Object
17 |
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 17 property :priority, 'Priority' |
#rule_condition(&block) ⇒ Object
This name is used because “condition” is a function already defined in Convection::Model::Template and should not be overridden.
Append a condition
30 31 32 33 34 |
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 30 def rule_condition(&block) cond = ResourceProperty::ELBV2ListenerRuleCondition.new(self) cond.instance_exec(&block) if block rule_conditions << cond end |
#rule_conditions(value) ⇒ Object
This name is used because “conditions” is a function already defined in Convection::Model::Template and should not be overridden.
15 |
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 15 property :rule_conditions, 'Conditions', :type => :list |