interface HttpGatewayListenerOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.HttpGatewayListenerOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#HttpGatewayListenerOptions |
![]() | software.amazon.awscdk.services.appmesh.HttpGatewayListenerOptions |
![]() | aws_cdk.aws_appmesh.HttpGatewayListenerOptions |
![]() | aws-cdk-lib » aws_appmesh » HttpGatewayListenerOptions |
Represents the properties needed to define HTTP Listeners for a VirtualGateway.
Example
declare const mesh: appmesh.Mesh;
const certificateAuthorityArn = 'arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012';
const gateway = new appmesh.VirtualGateway(this, 'gateway', {
mesh: mesh,
listeners: [appmesh.VirtualGatewayListener.http({
port: 443,
healthCheck: appmesh.HealthCheck.http({
interval: Duration.seconds(10),
}),
})],
backendDefaults: {
tlsClientPolicy: {
ports: [8080, 8081],
validation: {
trust: appmesh.TlsValidationTrust.acm([
acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, 'certificate', certificateAuthorityArn)]),
},
},
},
accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
virtualGatewayName: 'virtualGateway',
});
Properties
Name | Type | Description |
---|---|---|
connection | Http | Connection pool for http listeners. |
health | Health | The health check information for the listener. |
port? | number | Port to listen for connections on. |
tls? | Listener | Represents the configuration for enabling TLS on a listener. |
connectionPool?
Type:
Http
(optional, default: None)
Connection pool for http listeners.
healthCheck?
Type:
Health
(optional, default: no healthcheck)
The health check information for the listener.
port?
Type:
number
(optional, default: 8080)
Port to listen for connections on.
tls?
Type:
Listener
(optional, default: none)
Represents the configuration for enabling TLS on a listener.