@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.776Z") @Stability(value=Stable) public interface ApplicationListenerProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.certificatemanager.*;
import software.amazon.awscdk.services.ecs.patterns.*;
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
Certificate certificate;
ApplicationListenerProps applicationListenerProps = ApplicationListenerProps.builder()
.name("name")
// the properties below are optional
.certificate(certificate)
.port(123)
.protocol(ApplicationProtocol.HTTP)
.sslPolicy(SslPolicy.RECOMMENDED_TLS)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApplicationListenerProps.Builder
A builder for
ApplicationListenerProps |
static class |
ApplicationListenerProps.Jsii$Proxy
An implementation for
ApplicationListenerProps |
| Modifier and Type | Method and Description |
|---|---|
static ApplicationListenerProps.Builder |
builder() |
default ICertificate |
getCertificate()
Certificate Manager certificate to associate with the load balancer.
|
String |
getName()
Name of the listener.
|
default Number |
getPort()
The port on which the listener listens for requests.
|
default ApplicationProtocol |
getProtocol()
The protocol for connections from clients to the load balancer.
|
default SslPolicy |
getSslPolicy()
The security policy that defines which ciphers and protocols are supported by the ALB Listener.
|
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default ICertificate getCertificate()
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.
@Stability(value=Stable) @Nullable default Number getPort()
Default: - Determined from protocol if known.
@Stability(value=Stable) @Nullable default ApplicationProtocol getProtocol()
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.
@Stability(value=Stable) @Nullable default SslPolicy getSslPolicy()
Default: - The recommended elastic load balancing security policy
@Stability(value=Stable) static ApplicationListenerProps.Builder builder()
ApplicationListenerProps.Builder of ApplicationListenerPropsCopyright © 2022. All rights reserved.