Interface INetworkLoadBalancerProps
Properties to define an network load balancer.
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface INetworkLoadBalancerProps
Syntax (vb)
Public Interface 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
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. |
Properties
DomainName
The domain name for the service, e.g. "api.example.com.".
virtual string DomainName { get; }
Property Value
System.String
Remarks
Default: - No domain name.
DomainZone
The Route53 hosted zone for the domain, e.g. "example.com.".
virtual IHostedZone DomainZone { get; }
Property Value
Remarks
Default: - No Route53 hosted domain zone.
Listeners
Listeners (at least one listener) attached to this load balancer.
INetworkListenerProps[] Listeners { get; }
Property Value
Remarks
Default: - none
Name
Name of the load balancer.
string Name { get; }
Property Value
System.String
PublicLoadBalancer
Determines whether the Load Balancer will be internet-facing.
virtual Nullable<bool> PublicLoadBalancer { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true