Interface Http2GatewayListenerOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Http2GatewayListenerOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:34.261Z")
@Stability(Stable)
public interface Http2GatewayListenerOptions
extends software.amazon.jsii.JsiiSerializable
Represents the properties needed to define HTTP2 Listeners for a VirtualGateway.
Example:
// A Virtual Node with listener TLS from an ACM provided certificate
Certificate cert;
Mesh mesh;
VirtualNode node = VirtualNode.Builder.create(this, "node")
.mesh(mesh)
.serviceDiscovery(ServiceDiscovery.dns("node"))
.listeners(List.of(VirtualNodeListener.grpc(GrpcVirtualNodeListenerOptions.builder()
.port(80)
.tls(ListenerTlsOptions.builder()
.mode(TlsMode.STRICT)
.certificate(TlsCertificate.acm(cert))
.build())
.build())))
.build();
// A Virtual Gateway with listener TLS from a customer provided file certificate
VirtualGateway gateway = VirtualGateway.Builder.create(this, "gateway")
.mesh(mesh)
.listeners(List.of(VirtualGatewayListener.grpc(GrpcGatewayListenerOptions.builder()
.port(8080)
.tls(ListenerTlsOptions.builder()
.mode(TlsMode.STRICT)
.certificate(TlsCertificate.file("path/to/certChain", "path/to/privateKey"))
.build())
.build())))
.virtualGatewayName("gateway")
.build();
// A Virtual Gateway with listener TLS from a SDS provided certificate
VirtualGateway gateway2 = VirtualGateway.Builder.create(this, "gateway2")
.mesh(mesh)
.listeners(List.of(VirtualGatewayListener.http2(Http2GatewayListenerOptions.builder()
.port(8080)
.tls(ListenerTlsOptions.builder()
.mode(TlsMode.STRICT)
.certificate(TlsCertificate.sds("secrete_certificate"))
.build())
.build())))
.virtualGatewayName("gateway2")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttp2GatewayListenerOptionsstatic final classAn implementation forHttp2GatewayListenerOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default Http2ConnectionPoolConnection pool for http listeners.default HealthCheckThe health check information for the listener.default NumbergetPort()Port to listen for connections on.default ListenerTlsOptionsgetTls()Represents the configuration for enabling TLS on a listener.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConnectionPool
Connection pool for http listeners.Default: - None
-
getHealthCheck
The health check information for the listener.Default: - no healthcheck
-
getPort
Port to listen for connections on.Default: - 8080
-
getTls
Represents the configuration for enabling TLS on a listener.Default: - none
-
builder
-