Class ApplicationListenerProps
Properties to define an application listener.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApplicationListenerProps : Object, IApplicationListenerProps
Syntax (vb)
Public Class ApplicationListenerProps
Inherits Object
Implements IApplicationListenerProps
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.CertificateManager;
using Amazon.CDK.AWS.ECS.Patterns;
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
Certificate certificate;
var applicationListenerProps = new ApplicationListenerProps {
Name = "name",
// the properties below are optional
Certificate = certificate,
Port = 123,
Protocol = ApplicationProtocol.HTTP,
SslPolicy = SslPolicy.RECOMMENDED_TLS
};
Synopsis
Constructors
ApplicationListenerProps() |
Properties
Certificate | Certificate Manager certificate to associate with the load balancer. |
Name | Name of the listener. |
Port | The port on which the listener listens for requests. |
Protocol | The protocol for connections from clients to the load balancer. |
SslPolicy | The security policy that defines which ciphers and protocols are supported by the ALB Listener. |
Constructors
ApplicationListenerProps()
public ApplicationListenerProps()
Properties
Certificate
Certificate Manager certificate to associate with the load balancer.
public ICertificate Certificate { get; set; }
Property Value
Remarks
Setting this option will set the load balancer protocol to HTTPS.
Default: - No certificate associated with the load balancer, if using the HTTP protocol. For HTTPS, a DNS-validated certificate will be created for the load balancer's specified domain name.
Name
Name of the listener.
public string Name { get; set; }
Property Value
System.String
Port
The port on which the listener listens for requests.
public Nullable<double> Port { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - Determined from protocol if known.
Protocol
The protocol for connections from clients to the load balancer.
public Nullable<ApplicationProtocol> Protocol { get; set; }
Property Value
System.Nullable<ApplicationProtocol>
Remarks
The load balancer port is determined from the protocol (port 80 for HTTP, port 443 for HTTPS). A domain name and zone must be also be specified if using HTTPS.
Default: ApplicationProtocol.HTTP. If a certificate is specified, the protocol will be set by default to ApplicationProtocol.HTTPS.
SslPolicy
The security policy that defines which ciphers and protocols are supported by the ALB Listener.
public Nullable<SslPolicy> SslPolicy { get; set; }
Property Value
System.Nullable<SslPolicy>
Remarks
Default: - The recommended elastic load balancing security policy