public static final class CfnListenerProps.Builder
extends java.lang.Object
CfnListenerProps
Constructor and Description |
---|
Builder() |
public CfnListenerProps.Builder defaultActions(IResolvable defaultActions)
CfnListenerProps.getDefaultActions()
defaultActions
- The actions for the default rule. You cannot define a condition for a default rule. This parameter is required.
To create additional rules for an Application Load Balancer, use AWS::ElasticLoadBalancingV2::ListenerRule .this
public CfnListenerProps.Builder defaultActions(java.util.List<? extends java.lang.Object> defaultActions)
CfnListenerProps.getDefaultActions()
defaultActions
- The actions for the default rule. You cannot define a condition for a default rule. This parameter is required.
To create additional rules for an Application Load Balancer, use AWS::ElasticLoadBalancingV2::ListenerRule .this
public CfnListenerProps.Builder loadBalancerArn(java.lang.String loadBalancerArn)
CfnListenerProps.getLoadBalancerArn()
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer. This parameter is required.this
public CfnListenerProps.Builder alpnPolicy(java.util.List<java.lang.String> alpnPolicy)
CfnListenerProps.getAlpnPolicy()
alpnPolicy
- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.this
public CfnListenerProps.Builder certificates(IResolvable certificates)
CfnListenerProps.getCertificates()
certificates
- The default SSL server certificate for a secure listener.
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 .
this
public CfnListenerProps.Builder certificates(java.util.List<? extends java.lang.Object> certificates)
CfnListenerProps.getCertificates()
certificates
- The default SSL server certificate for a secure listener.
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 .
this
public CfnListenerProps.Builder port(java.lang.Number port)
CfnListenerProps.getPort()
port
- The port on which the load balancer is listening.
You cannot specify a port for a Gateway Load Balancer.this
public CfnListenerProps.Builder protocol(java.lang.String protocol)
CfnListenerProps.getProtocol()
protocol
- The protocol for connections from clients to the load balancer.
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.this
public CfnListenerProps.Builder sslPolicy(java.lang.String sslPolicy)
CfnListenerProps.getSslPolicy()
sslPolicy
- [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.
For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide .this
public CfnListenerProps build()
CfnListenerProps
java.lang.NullPointerException
- if any required attribute was not provided