Class InstanceEndpointProps
Properties for a NetworkLoadBalancerEndpoint.
Inheritance
System.Object
InstanceEndpointProps
Implements
Namespace: Amazon.CDK.AWS.GlobalAccelerator.Endpoints
Assembly: Amazon.CDK.AWS.GlobalAccelerator.Endpoints.dll
Syntax (csharp)
public class InstanceEndpointProps : Object, IInstanceEndpointProps
Syntax (vb)
Public Class InstanceEndpointProps
Inherits Object
Implements IInstanceEndpointProps
Remarks
ExampleMetadata: infused
Examples
Listener listener;
Instance instance;
listener.AddEndpointGroup("Group", new EndpointGroupOptions {
Endpoints = new [] {
new InstanceEndpoint(instance, new InstanceEndpointProps {
Weight = 128,
PreserveClientIp = true
}) }
});
Synopsis
Constructors
InstanceEndpointProps() |
Properties
PreserveClientIp | Forward the client IP address. |
Weight | Endpoint weight across all endpoints in the group. |
Constructors
InstanceEndpointProps()
public InstanceEndpointProps()
Properties
PreserveClientIp
Forward the client IP address.
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