UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

38 lines (37 loc) 1.22 kB
import * as elbv2 from '../../aws-elasticloadbalancingv2'; import * as ga from '../../aws-globalaccelerator'; /** * Properties for a NetworkLoadBalancerEndpoint */ export interface NetworkLoadBalancerEndpointProps { /** * Endpoint weight across all endpoints in the group * * Must be a value between 0 and 255. * * @default 128 */ readonly weight?: number; /** * Forward the client IP address in an `X-Forwarded-For` header * * 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 false */ readonly preserveClientIp?: boolean; } /** * Use a Network Load Balancer as a Global Accelerator Endpoint */ export declare class NetworkLoadBalancerEndpoint implements ga.IEndpoint { private readonly loadBalancer; private readonly options; readonly region?: string; constructor(loadBalancer: elbv2.INetworkLoadBalancer, options?: NetworkLoadBalancerEndpointProps); renderEndpointConfiguration(): any; }