interface InstanceEndpointProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.GlobalAccelerator.Endpoints.InstanceEndpointProps |
Java | software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpointProps |
Python | aws_cdk.aws_globalaccelerator_endpoints.InstanceEndpointProps |
TypeScript (source) | @aws-cdk/aws-globalaccelerator-endpoints » InstanceEndpointProps |
Properties for a NetworkLoadBalancerEndpoint.
Example
declare const listener: globalaccelerator.Listener;
declare const instance: ec2.Instance;
listener.addEndpointGroup('Group', {
endpoints: [
new ga_endpoints.InstanceEndpoint(instance, {
weight: 128,
preserveClientIp: true,
}),
],
});
Properties
Name | Type | Description |
---|---|---|
preserve | boolean | Forward the client IP address. |
weight? | number | Endpoint weight across all endpoints in the group. |
preserveClientIp?
Type:
boolean
(optional, default: true if available)
Forward the client IP address.
GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address.
Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list.
weight?
Type:
number
(optional, default: 128)
Endpoint weight across all endpoints in the group.
Must be a value between 0 and 255.