@Stability(value=Stable)
public static interface CfnEndpointGroup.PortOverrideProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.globalaccelerator.*;
PortOverrideProperty portOverrideProperty = PortOverrideProperty.builder()
.endpointPort(123)
.listenerPort(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEndpointGroup.PortOverrideProperty.Builder
A builder for
CfnEndpointGroup.PortOverrideProperty |
static class |
CfnEndpointGroup.PortOverrideProperty.Jsii$Proxy
An implementation for
CfnEndpointGroup.PortOverrideProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEndpointGroup.PortOverrideProperty.Builder |
builder() |
Number |
getEndpointPort()
The endpoint port that you want a listener port to be mapped to.
|
Number |
getListenerPort()
The listener port that you want to map to a specific endpoint port.
|
@Stability(value=Stable) @NotNull Number getEndpointPort()
This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
@Stability(value=Stable) @NotNull Number getListenerPort()
This is the port that user traffic arrives to the Global Accelerator on.
@Stability(value=Stable) static CfnEndpointGroup.PortOverrideProperty.Builder builder()
Copyright © 2022. All rights reserved.