aws-cdk-lib.aws_elasticloadbalancingv2.NetworkLoadBalancerProps

interface NetworkLoadBalancerProps

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.NetworkLoadBalancerProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#NetworkLoadBalancerProps
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancerProps
Pythonaws_cdk.aws_elasticloadbalancingv2.NetworkLoadBalancerProps
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancingv2 » NetworkLoadBalancerProps

Properties for a network load balancer.

Example

import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';

const vpc = new ec2.Vpc(this, 'VPC');
const nlb = new elbv2.NetworkLoadBalancer(this, 'NLB', {
  vpc,
});
const link = new apigateway.VpcLink(this, 'link', {
  targets: [nlb],
});

const integration = new apigateway.Integration({
  type: apigateway.IntegrationType.HTTP_PROXY,
  options: {
    connectionType: apigateway.ConnectionType.VPC_LINK,
    vpcLink: link,
  },
});

Properties

NameTypeDescription
vpcIVpcThe VPC network to place the load balancer in.
crossZoneEnabled?booleanIndicates whether cross-zone load balancing is enabled.
deletionProtection?booleanIndicates whether deletion protection is enabled.
internetFacing?booleanWhether the load balancer has an internet-routable address.
loadBalancerName?stringName of the load balancer.
vpcSubnets?SubnetSelectionWhich subnets place the load balancer in.

vpc

Type: IVpc

The VPC network to place the load balancer in.


crossZoneEnabled?

Type: boolean (optional, default: false)

Indicates whether cross-zone load balancing is enabled.


deletionProtection?

Type: boolean (optional, default: false)

Indicates whether deletion protection is enabled.


internetFacing?

Type: boolean (optional, default: false)

Whether the load balancer has an internet-routable address.


loadBalancerName?

Type: string (optional, default: Automatically generated name.)

Name of the load balancer.


vpcSubnets?

Type: SubnetSelection (optional, default: the Vpc default strategy.)

Which subnets place the load balancer in.