Class CfnListenerProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerProps>
- Enclosing interface:
CfnListenerProps
@Stability(Stable)
public static final class CfnListenerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerProps>
A builder for
CfnListenerProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalpnPolicy
(List<String> alpnPolicy) Sets the value ofCfnListenerProps.getAlpnPolicy()
build()
Builds the configured instance.certificates
(List<? extends Object> certificates) Sets the value ofCfnListenerProps.getCertificates()
certificates
(IResolvable certificates) Sets the value ofCfnListenerProps.getCertificates()
defaultActions
(List<? extends Object> defaultActions) Sets the value ofCfnListenerProps.getDefaultActions()
defaultActions
(IResolvable defaultActions) Sets the value ofCfnListenerProps.getDefaultActions()
listenerAttributes
(List<? extends Object> listenerAttributes) Sets the value ofCfnListenerProps.getListenerAttributes()
listenerAttributes
(IResolvable listenerAttributes) Sets the value ofCfnListenerProps.getListenerAttributes()
loadBalancerArn
(String loadBalancerArn) Sets the value ofCfnListenerProps.getLoadBalancerArn()
mutualAuthentication
(IResolvable mutualAuthentication) Sets the value ofCfnListenerProps.getMutualAuthentication()
mutualAuthentication
(CfnListener.MutualAuthenticationProperty mutualAuthentication) Sets the value ofCfnListenerProps.getMutualAuthentication()
Sets the value ofCfnListenerProps.getPort()
Sets the value ofCfnListenerProps.getProtocol()
Sets the value ofCfnListenerProps.getSslPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultActions
Sets the value ofCfnListenerProps.getDefaultActions()
- Parameters:
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 .- Returns:
this
-
defaultActions
@Stability(Stable) public CfnListenerProps.Builder defaultActions(List<? extends Object> defaultActions) Sets the value ofCfnListenerProps.getDefaultActions()
- Parameters:
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 .- Returns:
this
-
loadBalancerArn
Sets the value ofCfnListenerProps.getLoadBalancerArn()
- Parameters:
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer. This parameter is required.- Returns:
this
-
alpnPolicy
Sets the value ofCfnListenerProps.getAlpnPolicy()
- Parameters:
alpnPolicy
- [TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.- Returns:
this
-
certificates
Sets the value ofCfnListenerProps.getCertificates()
- Parameters:
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 .
- Returns:
this
-
certificates
@Stability(Stable) public CfnListenerProps.Builder certificates(List<? extends Object> certificates) Sets the value ofCfnListenerProps.getCertificates()
- Parameters:
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 .
- Returns:
this
-
listenerAttributes
@Stability(Stable) public CfnListenerProps.Builder listenerAttributes(IResolvable listenerAttributes) Sets the value ofCfnListenerProps.getListenerAttributes()
- Parameters:
listenerAttributes
- The listener attributes.- Returns:
this
-
listenerAttributes
@Stability(Stable) public CfnListenerProps.Builder listenerAttributes(List<? extends Object> listenerAttributes) Sets the value ofCfnListenerProps.getListenerAttributes()
- Parameters:
listenerAttributes
- The listener attributes.- Returns:
this
-
mutualAuthentication
@Stability(Stable) public CfnListenerProps.Builder mutualAuthentication(IResolvable mutualAuthentication) Sets the value ofCfnListenerProps.getMutualAuthentication()
- Parameters:
mutualAuthentication
- The mutual authentication configuration information.- Returns:
this
-
mutualAuthentication
@Stability(Stable) public CfnListenerProps.Builder mutualAuthentication(CfnListener.MutualAuthenticationProperty mutualAuthentication) Sets the value ofCfnListenerProps.getMutualAuthentication()
- Parameters:
mutualAuthentication
- The mutual authentication configuration information.- Returns:
this
-
port
Sets the value ofCfnListenerProps.getPort()
- Parameters:
port
- The port on which the load balancer is listening. You can't specify a port for a Gateway Load Balancer.- Returns:
this
-
protocol
Sets the value ofCfnListenerProps.getProtocol()
- Parameters:
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 can't specify a protocol for a Gateway Load Balancer.- Returns:
this
-
sslPolicy
Sets the value ofCfnListenerProps.getSslPolicy()
- Parameters:
sslPolicy
- [HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported. Updating the security policy can result in interruptions if the load balancer is handling a high volume of traffic.For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerProps>
- Returns:
- a new instance of
CfnListenerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-