Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::TrafficRouteProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::TrafficRouteProperty
- Defined in:
- code_deploy/cfn_deployment_group.rb
Overview
Information about a listener.
The listener contains the path used to route traffic that is received from the load balancer to a target group.
Instance Attribute Summary collapse
-
#listener_arns ⇒ Array<String>?
readonly
The Amazon Resource Name (ARN) of one listener.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(listener_arns: nil) ⇒ TrafficRouteProperty
constructor
A new instance of TrafficRouteProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(listener_arns: nil) ⇒ TrafficRouteProperty
Returns a new instance of TrafficRouteProperty.
1931 1932 1933 1934 |
# File 'code_deploy/cfn_deployment_group.rb', line 1931 def initialize(listener_arns: nil) @listener_arns = listener_arns Jsii::Type.check_type(@listener_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "listenerArns") unless @listener_arns.nil? end |
Instance Attribute Details
#listener_arns ⇒ Array<String>? (readonly)
The Amazon Resource Name (ARN) of one listener.
The listener identifies the route between a target group and a load balancer. This is an array of strings with a maximum size of one.
1942 1943 1944 |
# File 'code_deploy/cfn_deployment_group.rb', line 1942 def listener_arns @listener_arns end |
Class Method Details
.jsii_properties ⇒ Object
1944 1945 1946 1947 1948 |
# File 'code_deploy/cfn_deployment_group.rb', line 1944 def self.jsii_properties { :listener_arns => "listenerArns", } end |
Instance Method Details
#to_jsii ⇒ Object
1950 1951 1952 1953 1954 1955 1956 |
# File 'code_deploy/cfn_deployment_group.rb', line 1950 def to_jsii result = {} result.merge!({ "listenerArns" => @listener_arns, }) result.compact end |