Class ApplicationLoadBalancerEndpointOptions
Properties for a ApplicationLoadBalancerEndpoint.
Inheritance
System.Object
ApplicationLoadBalancerEndpointOptions
Implements
Namespace: Amazon.CDK.AWS.GlobalAccelerator.Endpoints
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApplicationLoadBalancerEndpointOptions : Object, IApplicationLoadBalancerEndpointOptions
Syntax (vb)
Public Class ApplicationLoadBalancerEndpointOptions
Inherits Object
Implements 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
Constructors
ApplicationLoadBalancerEndpointOptions() |
Properties
PreserveClientIp | Forward the client IP address in an |
Weight | Endpoint weight across all endpoints in the group. |
Constructors
ApplicationLoadBalancerEndpointOptions()
public ApplicationLoadBalancerEndpointOptions()
Properties
PreserveClientIp
Forward the client IP address in an X-Forwarded-For
header.
public Nullable<bool> PreserveClientIp { get; set; }
Property Value
System.Nullable<System.Boolean>
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.
public Nullable<double> Weight { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Must be a value between 0 and 255.
Default: 128