@Stability(value=Stable) public static final class CfnListener.Builder extends Object implements software.amazon.jsii.Builder<CfnListener>
CfnListener.| Modifier and Type | Method and Description |
|---|---|
CfnListener.Builder |
alpnPolicy(List<String> alpnPolicy)
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
|
CfnListener |
build() |
CfnListener.Builder |
certificates(IResolvable certificates)
The default SSL server certificate for a secure listener.
|
CfnListener.Builder |
certificates(List<? extends Object> certificates)
The default SSL server certificate for a secure listener.
|
static CfnListener.Builder |
create(software.constructs.Construct scope,
String id) |
CfnListener.Builder |
defaultActions(IResolvable defaultActions)
The actions for the default rule.
|
CfnListener.Builder |
defaultActions(List<? extends Object> defaultActions)
The actions for the default rule.
|
CfnListener.Builder |
loadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
CfnListener.Builder |
port(Number port)
The port on which the load balancer is listening.
|
CfnListener.Builder |
protocol(String protocol)
The protocol for connections from clients to the load balancer.
|
CfnListener.Builder |
sslPolicy(String sslPolicy)
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
|
@Stability(value=Stable) public static CfnListener.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnListener.ActionProperty.Builder.@Stability(value=Stable) public CfnListener.Builder defaultActions(IResolvable defaultActions)
To create additional rules for an Application Load Balancer, use AWS::ElasticLoadBalancingV2::ListenerRule .
defaultActions - The actions for the default rule. You cannot define a condition for a default rule. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder defaultActions(List<? extends Object> defaultActions)
To create additional rules for an Application Load Balancer, use AWS::ElasticLoadBalancingV2::ListenerRule .
defaultActions - The actions for the default rule. You cannot define a condition for a default rule. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder loadBalancerArn(String loadBalancerArn)
loadBalancerArn - The Amazon Resource Name (ARN) of the load balancer. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder alpnPolicy(List<String> alpnPolicy)
alpnPolicy - [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder certificates(IResolvable certificates)
You must provide exactly one certificate if the listener protocol is HTTPS or TLS.
To create a certificate list for a secure listener, use AWS::ElasticLoadBalancingV2::ListenerCertificate .
certificates - The default SSL server certificate for a secure listener. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder certificates(List<? extends Object> certificates)
You must provide exactly one certificate if the listener protocol is HTTPS or TLS.
To create a certificate list for a secure listener, use AWS::ElasticLoadBalancingV2::ListenerCertificate .
certificates - The default SSL server certificate for a secure listener. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder port(Number port)
You cannot specify a port for a Gateway Load Balancer.
port - The port on which the load balancer is listening. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder protocol(String protocol)
For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.
protocol - The protocol for connections from clients to the load balancer. This parameter is required.this@Stability(value=Stable) public CfnListener.Builder sslPolicy(String sslPolicy)
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide .
sslPolicy - [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported. This parameter is required.this@Stability(value=Stable) public CfnListener build()
build in interface software.amazon.jsii.Builder<CfnListener>Copyright © 2022. All rights reserved.