Http2GatewayListenerOptions¶
-
class
aws_cdk.aws_appmesh.
Http2GatewayListenerOptions
(*, connection_pool=None, health_check=None, port=None, tls=None)¶ Bases:
object
Represents the properties needed to define HTTP2 Listeners for a VirtualGateway.
- Parameters
connection_pool (
Optional
[Http2ConnectionPool
]) – Connection pool for http listeners. Default: - Nonehealth_check (
Optional
[HealthCheck
]) – The health check information for the listener. Default: - no healthcheckport (
Union
[int
,float
,None
]) – Port to listen for connections on. Default: - 8080tls (
Optional
[ListenerTlsOptions
]) – Represents the configuration for enabling TLS on a listener. Default: - none
- ExampleMetadata
infused
Example:
# A Virtual Node with listener TLS from an ACM provided certificate # cert: certificatemanager.Certificate # mesh: appmesh.Mesh node = appmesh.VirtualNode(self, "node", mesh=mesh, service_discovery=appmesh.ServiceDiscovery.dns("node"), listeners=[appmesh.VirtualNodeListener.grpc( port=80, tls=appmesh.ListenerTlsOptions( mode=appmesh.TlsMode.STRICT, certificate=appmesh.TlsCertificate.acm(cert) ) )] ) # A Virtual Gateway with listener TLS from a customer provided file certificate gateway = appmesh.VirtualGateway(self, "gateway", mesh=mesh, listeners=[appmesh.VirtualGatewayListener.grpc( port=8080, tls=appmesh.ListenerTlsOptions( mode=appmesh.TlsMode.STRICT, certificate=appmesh.TlsCertificate.file("path/to/certChain", "path/to/privateKey") ) )], virtual_gateway_name="gateway" ) # A Virtual Gateway with listener TLS from a SDS provided certificate gateway2 = appmesh.VirtualGateway(self, "gateway2", mesh=mesh, listeners=[appmesh.VirtualGatewayListener.http2( port=8080, tls=appmesh.ListenerTlsOptions( mode=appmesh.TlsMode.STRICT, certificate=appmesh.TlsCertificate.sds("secrete_certificate") ) )], virtual_gateway_name="gateway2" )
Attributes
-
connection_pool
¶ Connection pool for http listeners.
- Default
None
- Return type
Optional
[Http2ConnectionPool
]
-
health_check
¶ The health check information for the listener.
- Default
no healthcheck
- Return type
Optional
[HealthCheck
]
-
port
¶ Port to listen for connections on.
- Default
8080
- Return type
Union
[int
,float
,None
]
-
tls
¶ Represents the configuration for enabling TLS on a listener.
- Default
none
- Return type
Optional
[ListenerTlsOptions
]