NetworkLoadBalancerProps

class aws_cdk.aws_elasticloadbalancingv2.NetworkLoadBalancerProps(*, vpc, deletion_protection=None, internet_facing=None, load_balancer_name=None, vpc_subnets=None, cross_zone_enabled=None)

Bases: aws_cdk.aws_elasticloadbalancingv2.BaseLoadBalancerProps

__init__(*, vpc, deletion_protection=None, internet_facing=None, load_balancer_name=None, vpc_subnets=None, cross_zone_enabled=None)

Properties for a network load balancer.

Parameters
  • vpc (IVpc) – The VPC network to place the load balancer in.

  • deletion_protection (Optional[bool]) – Indicates whether deletion protection is enabled. Default: false

  • internet_facing (Optional[bool]) – Whether the load balancer has an internet-routable address. Default: false

  • load_balancer_name (Optional[str]) – Name of the load balancer. Default: - Automatically generated name.

  • vpc_subnets (Optional[SubnetSelection]) – Where in the VPC to place the load balancer. Default: - Public subnets if internetFacing, otherwise private subnets.

  • cross_zone_enabled (Optional[bool]) – Indicates whether cross-zone load balancing is enabled. Default: false

Attributes

cross_zone_enabled

Indicates whether cross-zone load balancing is enabled.

default :default: false

Return type

Optional[bool]

deletion_protection

Indicates whether deletion protection is enabled.

default :default: false

Return type

Optional[bool]

internet_facing

Whether the load balancer has an internet-routable address.

default :default: false

Return type

Optional[bool]

load_balancer_name

Name of the load balancer.

default :default: - Automatically generated name.

Return type

Optional[str]

vpc

The VPC network to place the load balancer in.

Return type

IVpc

vpc_subnets

Where in the VPC to place the load balancer.

default :default: - Public subnets if internetFacing, otherwise private subnets.

Return type

Optional[SubnetSelection]