Interface IApplicationLoadBalancerEndpointOptions
Properties for a ApplicationLoadBalancerEndpoint.
Namespace: Amazon.CDK.AWS.GlobalAccelerator.Endpoints
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IApplicationLoadBalancerEndpointOptions
Syntax (vb)
Public Interface IApplicationLoadBalancerEndpointOptions
Remarks
ExampleMetadata: infused
Examples
ApplicationLoadBalancer alb;
Listener listener;
listener.AddEndpointGroup("Group", new EndpointGroupOptions {
Endpoints = new [] {
new ApplicationLoadBalancerEndpoint(alb, new ApplicationLoadBalancerEndpointOptions {
Weight = 128,
PreserveClientIp = true
}) }
});
Synopsis
Properties
Preserve |
Forward the client IP address in an |
Weight | Endpoint weight across all endpoints in the group. |
Properties
PreserveClientIp
Forward the client IP address in an X-Forwarded-For
header.
virtual Nullable<bool> PreserveClientIp { get; }
Property Value
System.
Remarks
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.
Default: true if available
Weight
Endpoint weight across all endpoints in the group.
virtual Nullable<double> Weight { get; }
Property Value
System.
Remarks
Must be a value between 0 and 255.
Default: 128