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()
loadBalancerArn
(String loadBalancerArn) Sets the value ofCfnListenerProps.getLoadBalancerArn()
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
-
port
Sets the value ofCfnListenerProps.getPort()
- Parameters:
port
- The port on which the load balancer is listening. You cannot 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 cannot 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. 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
-