class Ufo::Stack::Builder::Resources::Listener
Public Instance Methods
build()
click to toggle source
# File lib/ufo/stack/builder/resources/listener.rb, line 3 def build { Type: "AWS::ElasticLoadBalancingV2::Listener", Condition: "CreateElbIsTrue", Properties: properties, } end
port()
click to toggle source
# File lib/ufo/stack/builder/resources/listener.rb, line 38 def port 80 end
properties()
click to toggle source
# File lib/ufo/stack/builder/resources/listener.rb, line 11 def properties props = { DefaultActions: [ { Type: "forward", TargetGroupArn: { "Fn::If": [ "ElbTargetGroupIsBlank", {Ref: "TargetGroup"}, {Ref: "ElbTargetGroup"} ] } } ], LoadBalancerArn: {Ref: "Elb"}, Protocol: protocol, } props[:Port] = port if port props end
protocol()
click to toggle source
# File lib/ufo/stack/builder/resources/listener.rb, line 34 def protocol @default_listener_protocol end