interface VirtualGatewayProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.VirtualGatewayProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#VirtualGatewayProps |
![]() | software.amazon.awscdk.services.appmesh.VirtualGatewayProps |
![]() | aws_cdk.aws_appmesh.VirtualGatewayProps |
![]() | aws-cdk-lib » aws_appmesh » VirtualGatewayProps |
Properties used when creating a new 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 |
---|---|---|
mesh | IMesh | The Mesh which the VirtualGateway belongs to. |
access | Access | Access Logging Configuration for the VirtualGateway. |
backend | Backend | Default Configuration Virtual Node uses to communicate with Virtual Service. |
listeners? | Virtual [] | Listeners for the VirtualGateway. |
virtual | string | Name of the VirtualGateway. |
mesh
Type:
IMesh
The Mesh which the VirtualGateway belongs to.
accessLog?
Type:
Access
(optional, default: no access logging)
Access Logging Configuration for the VirtualGateway.
backendDefaults?
Type:
Backend
(optional, default: No Config)
Default Configuration Virtual Node uses to communicate with Virtual Service.
listeners?
Type:
Virtual
[]
(optional, default: Single HTTP listener on port 8080)
Listeners for the VirtualGateway.
Only one is supported.
virtualGatewayName?
Type:
string
(optional, default: A name is automatically determined)
Name of the VirtualGateway.