HttpGatewayListenerOptions¶
-
class
aws_cdk.aws_appmesh.
HttpGatewayListenerOptions
(*, connection_pool=None, health_check=None, port=None, tls=None)¶ Bases:
object
Represents the properties needed to define HTTP Listeners for a VirtualGateway.
- Parameters
connection_pool (
Union
[HttpConnectionPool
,Dict
[str
,Any
],None
]) – 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 (
Union
[ListenerTlsOptions
,Dict
[str
,Any
],None
]) – Represents the configuration for enabling TLS on a listener. Default: - none
- ExampleMetadata
infused
Example:
# mesh: appmesh.Mesh certificate_authority_arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012" gateway = appmesh.VirtualGateway(self, "gateway", mesh=mesh, listeners=[appmesh.VirtualGatewayListener.http( port=443, health_check=appmesh.HealthCheck.http( interval=cdk.Duration.seconds(10) ) )], backend_defaults=appmesh.BackendDefaults( tls_client_policy=appmesh.TlsClientPolicy( ports=[8080, 8081], validation=appmesh.TlsValidation( trust=appmesh.TlsValidationTrust.acm([ acmpca.CertificateAuthority.from_certificate_authority_arn(self, "certificate", certificate_authority_arn) ]) ) ) ), access_log=appmesh.AccessLog.from_file_path("/dev/stdout"), virtual_gateway_name="virtualGateway" )
Attributes
-
connection_pool
¶ Connection pool for http listeners.
- Default
None
- Return type
Optional
[HttpConnectionPool
]
-
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
]