PortOverride

class aws_cdk.aws_globalaccelerator.PortOverride(*, endpoint_port, listener_port)

Bases: object

Override specific listener ports used to route traffic to endpoints that are part of an endpoint group.

Parameters
  • endpoint_port (Union[int, float]) – The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.

  • listener_port (Union[int, float]) – The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.

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

port_override = globalaccelerator.PortOverride(
    endpoint_port=123,
    listener_port=123
)

Attributes

endpoint_port

The endpoint port that you want a listener port to be mapped to.

This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.

Return type

Union[int, float]

listener_port

The listener port that you want to map to a specific endpoint port.

This is the port that user traffic arrives to the Global Accelerator on.

Return type

Union[int, float]