Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::TrafficRouteProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listener_arns: nil) ⇒ TrafficRouteProperty

Returns a new instance of TrafficRouteProperty.

Parameters:

  • listener_arns (Array<String>, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of one listener.



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_arnsArray<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_propertiesObject



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_jsiiObject



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