Class: Convection::Model::Template::Resource::ELBV2ListenerRule

Inherits:
Convection::Model::Template::Resource show all
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

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

#condition, #render_condition

Methods included from DSL::Template::Resource

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, #join, #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

#actionsObject #actions(value) ⇒ Object

Overloads:

  • #actionsObject

    Returns the value of the ‘Actions’ CloudFormation property.

  • #actions(value) ⇒ Object

    Sets the ‘Actions’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Actions’ CloudFormation property to.



12
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 12

property :actions, 'Actions', :type => :list

#listener_arnObject #listener_arn(value) ⇒ Object

Overloads:

  • #listener_arnObject

    Returns the value of the ‘ListenerArn’ CloudFormation property.

  • #listener_arn(value) ⇒ Object

    Sets the ‘ListenerArn’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘ListenerArn’ CloudFormation property to.



16
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 16

property :listener_arn, 'ListenerArn'

#priorityObject #priority(value) ⇒ Object

Overloads:

  • #priorityObject

    Returns the value of the ‘Priority’ CloudFormation property.

  • #priority(value) ⇒ Object

    Sets the ‘Priority’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘Priority’ CloudFormation property to.



17
# File 'lib/convection/model/template/resource/aws_elbv2_listener_rule.rb', line 17

property :priority, 'Priority'

#rule_condition(&block) ⇒ Object

Note:

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

Note:

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