CfnListenerProps

class aws_cdk.aws_globalaccelerator.CfnListenerProps(*, accelerator_arn, client_affinity=None, port_ranges, protocol)

Bases: object

Properties for defining a AWS::GlobalAccelerator::Listener.

Parameters
  • accelerator_arn (str) – AWS::GlobalAccelerator::Listener.AcceleratorArn.

  • client_affinity (Optional[str]) – AWS::GlobalAccelerator::Listener.ClientAffinity.

  • port_ranges (Union[IResolvable, Sequence[Union[IResolvable, PortRangeProperty]]]) – AWS::GlobalAccelerator::Listener.PortRanges.

  • protocol (str) – AWS::GlobalAccelerator::Listener.Protocol.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_globalaccelerator as globalaccelerator

cfn_listener_props = globalaccelerator.CfnListenerProps(
    accelerator_arn="acceleratorArn",
    port_ranges=[globalaccelerator.CfnListener.PortRangeProperty(
        from_port=123,
        to_port=123
    )],
    protocol="protocol",

    # the properties below are optional
    client_affinity="clientAffinity"
)

Attributes

accelerator_arn

AWS::GlobalAccelerator::Listener.AcceleratorArn.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-acceleratorarn

Return type

str

client_affinity

AWS::GlobalAccelerator::Listener.ClientAffinity.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-clientaffinity

Return type

Optional[str]

port_ranges

AWS::GlobalAccelerator::Listener.PortRanges.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-portranges

Return type

Union[IResolvable, List[Union[IResolvable, PortRangeProperty]]]

protocol

AWS::GlobalAccelerator::Listener.Protocol.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-listener.html#cfn-globalaccelerator-listener-protocol

Return type

str