Interface BaseNetworkListenerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
NetworkListenerProps
- All Known Implementing Classes:
BaseNetworkListenerProps.Jsii$Proxy
,NetworkListenerProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.HttpNlbIntegration; Vpc vpc = new Vpc(this, "VPC"); NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "lb").vpc(vpc).build(); NetworkListener listener = lb.addListener("listener", BaseNetworkListenerProps.builder().port(80).build()); listener.addTargets("target", AddNetworkTargetsProps.builder() .port(80) .build()); HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi") .defaultIntegration(new HttpNlbIntegration("DefaultIntegration", listener)) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forBaseNetworkListenerProps
static final class
An implementation forBaseNetworkListenerProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default AlpnPolicy
Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages.default List<IListenerCertificate>
Certificate list of ACM cert ARNs.default NetworkListenerAction
Default action to take for requests to this listener.default List<INetworkTargetGroup>
Default target groups to load balance to.getPort()
The port on which the listener listens for requests.default Protocol
Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.default SslPolicy
SSL Policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPort
The port on which the listener listens for requests. -
getAlpnPolicy
Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages.ALPN enables the application layer to negotiate which protocols should be used over a secure connection, such as HTTP/1 and HTTP/2.
Can only be specified together with Protocol TLS.
Default: - None
-
getCertificates
Certificate list of ACM cert ARNs.You must provide exactly one certificate if the listener protocol is HTTPS or TLS.
Default: - No certificates.
-
getDefaultAction
Default action to take for requests to this listener.This allows full control of the default Action of the load balancer, including weighted forwarding. See the
NetworkListenerAction
class for all options.Cannot be specified together with
defaultTargetGroups
.Default: - None.
-
getDefaultTargetGroups
Default target groups to load balance to.All target groups will be load balanced to with equal weight and without stickiness. For a more complex configuration than that, use either
defaultAction
oraddAction()
.Cannot be specified together with
defaultAction
.Default: - None.
-
getProtocol
Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.Default: - TLS if certificates are provided. TCP otherwise.
-
getSslPolicy
SSL Policy.Default: - Current predefined security policy.
-
builder
- Returns:
- a
BaseNetworkListenerProps.Builder
ofBaseNetworkListenerProps
-