Sha256: 174d481ae65a7e6f60944d34d0d9dfafd9369eb00c6f44832d5bd1954290ea0d

Contents?: true

Size: 1.33 KB

Versions: 57

Compression:

Stored size: 1.33 KB

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::ElasticLoadBalancingV2::ListenerRule
        ##
        class ELBV2ListenerRule < Resource
          type 'AWS::ElasticLoadBalancingV2::ListenerRule', :elbv2_listener_rule
          property :actions, 'Actions', :type => :list
          # @note This name is used because "conditions" is a function already defined
          #   in {#Convection::Model::Template} and should not be overridden.
          property :rule_conditions, 'Conditions', :type => :list
          property :listener_arn, 'ListenerArn'
          property :priority, 'Priority'

          # Append an action
          def action(&block)
            action = ResourceProperty::ELBV2ListenerRuleAction.new(self)
            action.instance_exec(&block) if block
            actions << action
          end

          # Append a condition
          #
          # @note This name is used because "condition" is a function already defined
          #   in {#Convection::Model::Template} and should not be overridden.
          def rule_condition(&block)
            cond = ResourceProperty::ELBV2ListenerRuleCondition.new(self)
            cond.instance_exec(&block) if block
            rule_conditions << cond
          end
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
convection-2.3.1 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.3.0 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.29 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.27 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.26 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.25 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.24 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.23 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.22 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.21 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.20 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.19 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.18 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.17 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.16 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.15 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.14 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb
convection-2.2.13 lib/convection/model/template/resource/aws_elbv2_listener_rule.rb