Interface CfnListenerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListenerProps.Jsii$Proxy
CfnListener.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
CfnListenerProps cfnListenerProps = CfnListenerProps.builder()
.defaultActions(List.of(ActionProperty.builder()
.type("type")
// the properties below are optional
.authenticateCognitoConfig(AuthenticateCognitoConfigProperty.builder()
.userPoolArn("userPoolArn")
.userPoolClientId("userPoolClientId")
.userPoolDomain("userPoolDomain")
// the properties below are optional
.authenticationRequestExtraParams(Map.of(
"authenticationRequestExtraParamsKey", "authenticationRequestExtraParams"))
.onUnauthenticatedRequest("onUnauthenticatedRequest")
.scope("scope")
.sessionCookieName("sessionCookieName")
.sessionTimeout("sessionTimeout")
.build())
.authenticateOidcConfig(AuthenticateOidcConfigProperty.builder()
.authorizationEndpoint("authorizationEndpoint")
.clientId("clientId")
.issuer("issuer")
.tokenEndpoint("tokenEndpoint")
.userInfoEndpoint("userInfoEndpoint")
// the properties below are optional
.authenticationRequestExtraParams(Map.of(
"authenticationRequestExtraParamsKey", "authenticationRequestExtraParams"))
.clientSecret("clientSecret")
.onUnauthenticatedRequest("onUnauthenticatedRequest")
.scope("scope")
.sessionCookieName("sessionCookieName")
.sessionTimeout("sessionTimeout")
.useExistingClientSecret(false)
.build())
.fixedResponseConfig(FixedResponseConfigProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.contentType("contentType")
.messageBody("messageBody")
.build())
.forwardConfig(ForwardConfigProperty.builder()
.targetGroups(List.of(TargetGroupTupleProperty.builder()
.targetGroupArn("targetGroupArn")
.weight(123)
.build()))
.targetGroupStickinessConfig(TargetGroupStickinessConfigProperty.builder()
.durationSeconds(123)
.enabled(false)
.build())
.build())
.order(123)
.redirectConfig(RedirectConfigProperty.builder()
.statusCode("statusCode")
// the properties below are optional
.host("host")
.path("path")
.port("port")
.protocol("protocol")
.query("query")
.build())
.targetGroupArn("targetGroupArn")
.build()))
.loadBalancerArn("loadBalancerArn")
// the properties below are optional
.alpnPolicy(List.of("alpnPolicy"))
.certificates(List.of(CertificateProperty.builder()
.certificateArn("certificateArn")
.build()))
.listenerAttributes(List.of(ListenerAttributeProperty.builder()
.key("key")
.value("value")
.build()))
.mutualAuthentication(MutualAuthenticationProperty.builder()
.advertiseTrustStoreCaNames("advertiseTrustStoreCaNames")
.ignoreClientCertificateExpiry(false)
.mode("mode")
.trustStoreArn("trustStoreArn")
.build())
.port(123)
.protocol("protocol")
.sslPolicy("sslPolicy")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnListenerPropsstatic final classAn implementation forCfnListenerProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnListenerProps.Builderbuilder()[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.default ObjectThe default SSL server certificate for a secure listener.The actions for the default rule.default ObjectThe listener attributes.The Amazon Resource Name (ARN) of the load balancer.default ObjectThe mutual authentication configuration information.default NumbergetPort()The port on which the load balancer is listening.default StringThe protocol for connections from clients to the load balancer.default String[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultActions
The actions for the default rule. You cannot define a condition for a default rule.To create additional rules for an Application Load Balancer, use AWS::ElasticLoadBalancingV2::ListenerRule .
- See Also:
-
getLoadBalancerArn
The Amazon Resource Name (ARN) of the load balancer.- See Also:
-
getAlpnPolicy
[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.- See Also:
-
getCertificates
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 .
- See Also:
-
getListenerAttributes
The listener attributes.- See Also:
-
getMutualAuthentication
The mutual authentication configuration information.- See Also:
-
getPort
The port on which the load balancer is listening.You can't specify a port for a Gateway Load Balancer.
- See Also:
-
getProtocol
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.
- See Also:
-
getSslPolicy
[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 .
- See Also:
-
builder
- Returns:
- a
CfnListenerProps.BuilderofCfnListenerProps
-