Show / Hide Table of Contents

Class BaseLoadBalancerProps

Shared properties of both Application and Network Load Balancers.

Inheritance
System.Object
BaseLoadBalancerProps
Implements
IBaseLoadBalancerProps
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class BaseLoadBalancerProps : Object, IBaseLoadBalancerProps
Syntax (vb)
Public Class BaseLoadBalancerProps
    Inherits Object
    Implements IBaseLoadBalancerProps
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.ElasticLoadBalancingV2;

Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;

var baseLoadBalancerProps = new BaseLoadBalancerProps {
    Vpc = vpc,

    // the properties below are optional
    DeletionProtection = false,
    InternetFacing = false,
    LoadBalancerName = "loadBalancerName",
    VpcSubnets = new SubnetSelection {
        AvailabilityZones = new [] { "availabilityZones" },
        OnePerAz = false,
        SubnetFilters = new [] { subnetFilter },
        SubnetGroupName = "subnetGroupName",
        SubnetName = "subnetName",
        Subnets = new [] { subnet },
        SubnetType = SubnetType.ISOLATED
    }
};

Synopsis

Constructors

BaseLoadBalancerProps()

Properties

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

BaseLoadBalancerProps()

public BaseLoadBalancerProps()

Properties

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

The VPC network to place the load balancer in.

public IVpc Vpc { get; set; }
Property Value

IVpc

VpcSubnets

Which subnets place the load balancer in.

public ISubnetSelection VpcSubnets { get; set; }
Property Value

ISubnetSelection

Remarks

Default: - the Vpc default strategy.

Implements

IBaseLoadBalancerProps
Back to top Generated by DocFX