interface BackendDefaults
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.BackendDefaults |
![]() | software.amazon.awscdk.services.appmesh.BackendDefaults |
![]() | aws_cdk.aws_appmesh.BackendDefaults |
![]() | @aws-cdk/aws-appmesh » BackendDefaults |
Represents the properties needed to define backend defaults.
Example
declare const mesh: appmesh.Mesh;
declare const service: cloudmap.Service;
const node = new appmesh.VirtualNode(this, 'node', {
mesh,
serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
listeners: [appmesh.VirtualNodeListener.http({
port: 8080,
healthCheck: appmesh.HealthCheck.http({
healthyThreshold: 3,
interval: cdk.Duration.seconds(5),
path: '/ping',
timeout: cdk.Duration.seconds(2),
unhealthyThreshold: 2,
}),
timeout: {
idle: cdk.Duration.seconds(5),
},
})],
backendDefaults: {
tlsClientPolicy: {
validation: {
trust: appmesh.TlsValidationTrust.file('/keys/local_cert_chain.pem'),
},
},
},
accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
});
cdk.Tags.of(node).add('Environment', 'Dev');
Properties
Name | Type | Description |
---|---|---|
tls | Tls | TLS properties for Client policy for backend defaults. |
tlsClientPolicy?
Type:
Tls
(optional, default: none)
TLS properties for Client policy for backend defaults.