public static final class CfnListener.Builder
extends java.lang.Object
CfnListener
.Modifier and Type | Method and Description |
---|---|
CfnListener.Builder |
alpnPolicy(java.util.List<java.lang.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(java.util.List<? extends java.lang.Object> certificates)
The default SSL server certificate for a secure listener.
|
static CfnListener.Builder |
create(Construct scope,
java.lang.String id) |
CfnListener.Builder |
defaultActions(IResolvable defaultActions)
The actions for the default rule.
|
CfnListener.Builder |
defaultActions(java.util.List<? extends java.lang.Object> defaultActions)
The actions for the default rule.
|
CfnListener.Builder |
loadBalancerArn(java.lang.String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
|
CfnListener.Builder |
port(java.lang.Number port)
The port on which the load balancer is listening.
|
CfnListener.Builder |
protocol(java.lang.String protocol)
The protocol for connections from clients to the load balancer.
|
CfnListener.Builder |
sslPolicy(java.lang.String sslPolicy)
[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
|
public static CfnListener.Builder create(Construct scope, java.lang.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
.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
public CfnListener.Builder defaultActions(java.util.List<? extends java.lang.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
public CfnListener.Builder loadBalancerArn(java.lang.String loadBalancerArn)
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer. This parameter is required.this
public CfnListener.Builder alpnPolicy(java.util.List<java.lang.String> alpnPolicy)
alpnPolicy
- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy. This parameter is required.this
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
public CfnListener.Builder certificates(java.util.List<? extends java.lang.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
public CfnListener.Builder port(java.lang.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
public CfnListener.Builder protocol(java.lang.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
public CfnListener.Builder sslPolicy(java.lang.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
public CfnListener build()