Interface CfnEndpointGroup.PortOverrideProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEndpointGroup.PortOverrideProperty.Jsii$Proxy
- Enclosing class:
CfnEndpointGroup
@Stability(Stable)
public static interface CfnEndpointGroup.PortOverrideProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.globalaccelerator.*; PortOverrideProperty portOverrideProperty = PortOverrideProperty.builder() .endpointPort(123) .listenerPort(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnEndpointGroup.PortOverrideProperty
static final class
An implementation forCfnEndpointGroup.PortOverrideProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The endpoint port that you want a listener port to be mapped to.The listener port that you want to map to a specific endpoint port.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEndpointPort
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.
- See Also:
-
getListenerPort
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.
- See Also:
-
builder
-