Interface IApplicationLoadBalancerProps
Properties to define an application load balancer.
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IApplicationLoadBalancerProps
Syntax (vb)
Public Interface IApplicationLoadBalancerProps
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;
using Amazon.CDK.AWS.CertificateManager;
using Amazon.CDK.AWS.ECS.Patterns;
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
using Amazon.CDK.AWS.Route53;
Certificate certificate;
HostedZone hostedZone;
var applicationLoadBalancerProps = new ApplicationLoadBalancerProps {
Listeners = new [] { new ApplicationListenerProps {
Name = "name",
// the properties below are optional
Certificate = certificate,
Port = 123,
Protocol = ApplicationProtocol.HTTP,
SslPolicy = SslPolicy.RECOMMENDED_TLS
} },
Name = "name",
// the properties below are optional
DomainName = "domainName",
DomainZone = hostedZone,
IdleTimeout = Duration.Minutes(30),
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.". |
IdleTimeout | The load balancer idle timeout, in seconds. |
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.
IdleTimeout
The load balancer idle timeout, in seconds.
virtual Duration IdleTimeout { get; }
Property Value
Remarks
Can be between 1 and 4000 seconds.
Default: - CloudFormation sets idle timeout to 60 seconds
Listeners
Listeners (at least one listener) attached to this load balancer.
IApplicationListenerProps[] Listeners { get; }
Property Value
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