aws-cdk-lib.aws_globalaccelerator.CfnEndpointGroup.PortOverrideProperty

interface PortOverrideProperty

LanguageType name
.NETAmazon.CDK.AWS.GlobalAccelerator.CfnEndpointGroup.PortOverrideProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglobalaccelerator#CfnEndpointGroup_PortOverrideProperty
Javasoftware.amazon.awscdk.services.globalaccelerator.CfnEndpointGroup.PortOverrideProperty
Pythonaws_cdk.aws_globalaccelerator.CfnEndpointGroup.PortOverrideProperty
TypeScript aws-cdk-lib » aws_globalaccelerator » CfnEndpointGroup » PortOverrideProperty

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

For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.

For more information, see Port overrides in the AWS Global Accelerator Developer Guide .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_globalaccelerator as globalaccelerator } from 'aws-cdk-lib';
const portOverrideProperty: globalaccelerator.CfnEndpointGroup.PortOverrideProperty = {
  endpointPort: 123,
  listenerPort: 123,
};

Properties

NameTypeDescription
endpointPortnumberThe endpoint port that you want a listener port to be mapped to.
listenerPortnumberThe listener port that you want to map to a specific endpoint port.

endpointPort

Type: number

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.


listenerPort

Type: number

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.