GrpcGatewayListenerOptions
- class aws_cdk.aws_appmesh.GrpcGatewayListenerOptions(*, connection_pool=None, health_check=None, port=None, tls=None)
- Bases: - object- Represents the properties needed to define GRPC Listeners for a VirtualGateway. - Parameters:
- connection_pool ( - Union[- GrpcConnectionPool,- Dict[- str,- Any],- None]) – Connection pool for http listeners. Default: - None
- health_check ( - Optional[- HealthCheck]) – The health check information for the listener. Default: - no healthcheck
- port ( - Union[- int,- float,- None]) – Port to listen for connections on. Default: - 8080
- tls ( - Union[- ListenerTlsOptions,- Dict[- str,- Any],- None]) – 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 
 
 
 - health_check
- The health check information for the listener. - Default:
- no healthcheck 
 
 
 - port
- Port to listen for connections on. - Default:
- 8080 
 
 
 - tls
- Represents the configuration for enabling TLS on a listener. - Default:
- none