Show / Hide Table of Contents

Class NetworkLoadBalancerProps

Properties to define an network load balancer.

Inheritance
System.Object
NetworkLoadBalancerProps
Implements
INetworkLoadBalancerProps
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.AWS.ECS.Patterns.dll
Syntax (csharp)
public class NetworkLoadBalancerProps : Object, INetworkLoadBalancerProps
Syntax (vb)
Public Class NetworkLoadBalancerProps
    Inherits Object
    Implements INetworkLoadBalancerProps
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.ECS.Patterns;
using Amazon.CDK.AWS.Route53;

HostedZone hostedZone;

var networkLoadBalancerProps = new NetworkLoadBalancerProps {
    Listeners = new [] { new NetworkListenerProps {
        Name = "name",

        // the properties below are optional
        Port = 123
    } },
    Name = "name",

    // the properties below are optional
    DomainName = "domainName",
    DomainZone = hostedZone,
    PublicLoadBalancer = false
};

Synopsis

Constructors

NetworkLoadBalancerProps()

Properties

DomainName

The domain name for the service, e.g. "api.example.com.".

DomainZone

The Route53 hosted zone for the domain, e.g. "example.com.".

Listeners

Listeners (at least one listener) attached to this load balancer.

Name

Name of the load balancer.

PublicLoadBalancer

Determines whether the Load Balancer will be internet-facing.

Constructors

NetworkLoadBalancerProps()

public NetworkLoadBalancerProps()

Properties

DomainName

The domain name for the service, e.g. "api.example.com.".

public string DomainName { get; set; }
Property Value

System.String

Remarks

Default: - No domain name.

DomainZone

The Route53 hosted zone for the domain, e.g. "example.com.".

public IHostedZone DomainZone { get; set; }
Property Value

IHostedZone

Remarks

Default: - No Route53 hosted domain zone.

Listeners

Listeners (at least one listener) attached to this load balancer.

public INetworkListenerProps[] Listeners { get; set; }
Property Value

INetworkListenerProps[]

Remarks

Default: - none

Name

Name of the load balancer.

public string Name { get; set; }
Property Value

System.String

PublicLoadBalancer

Determines whether the Load Balancer will be internet-facing.

public Nullable<bool> PublicLoadBalancer { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

Default: true

Implements

INetworkLoadBalancerProps
Back to top Generated by DocFX