class Convection::Model::Template::Resource::ELBV2ListenerRule
AWS::ElasticLoadBalancingV2::ListenerRule
Public Instance Methods
action(&block)
click to toggle source
Append an action
# 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
rule_condition(&block)
click to toggle source
Append a condition
@note This name is used because “condition” is a function already defined
in {#Convection::Model::Template} and should not be overridden.
# 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