Class NetworkLoadBalancerProps
Properties for a network load balancer.
Inheritance
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class NetworkLoadBalancerProps : Object, INetworkLoadBalancerProps, IBaseLoadBalancerProps
Syntax (vb)
Public Class NetworkLoadBalancerProps
Inherits Object
Implements INetworkLoadBalancerProps, IBaseLoadBalancerProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.APIGatewayv2.Integrations;
var vpc = new Vpc(this, "VPC");
var lb = new NetworkLoadBalancer(this, "lb", new NetworkLoadBalancerProps { Vpc = vpc });
var listener = lb.AddListener("listener", new BaseNetworkListenerProps { Port = 80 });
listener.AddTargets("target", new AddNetworkTargetsProps {
Port = 80
});
var httpEndpoint = new HttpApi(this, "HttpProxyPrivateApi", new HttpApiProps {
DefaultIntegration = new HttpNlbIntegration("DefaultIntegration", listener)
});
Synopsis
Constructors
NetworkLoadBalancerProps() |
Properties
CrossZoneEnabled | Indicates whether cross-zone load balancing is enabled. |
DeletionProtection | Indicates whether deletion protection is enabled. |
InternetFacing | Whether the load balancer has an internet-routable address. |
LoadBalancerName | Name of the load balancer. |
Vpc | The VPC network to place the load balancer in. |
VpcSubnets | Which subnets place the load balancer in. |
Constructors
NetworkLoadBalancerProps()
public NetworkLoadBalancerProps()
Properties
CrossZoneEnabled
Indicates whether cross-zone load balancing is enabled.
public Nullable<bool> CrossZoneEnabled { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
DeletionProtection
Indicates whether deletion protection is enabled.
public Nullable<bool> DeletionProtection { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
InternetFacing
Whether the load balancer has an internet-routable address.
public Nullable<bool> InternetFacing { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
LoadBalancerName
Name of the load balancer.
public string LoadBalancerName { get; set; }
Property Value
System.String
Remarks
Default: - Automatically generated name.
Vpc
VpcSubnets
Which subnets place the load balancer in.
public ISubnetSelection VpcSubnets { get; set; }
Property Value
Remarks
Default: - the Vpc default strategy.