interface TlsValidation
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.TlsValidation |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#TlsValidation |
Java | software.amazon.awscdk.services.appmesh.TlsValidation |
Python | aws_cdk.aws_appmesh.TlsValidation |
TypeScript (source) | aws-cdk-lib » aws_appmesh » TlsValidation |
Represents the properties needed to define TLS Validation context.
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: Duration.seconds(5),
path: '/ping',
timeout: Duration.seconds(2),
unhealthyThreshold: 2,
}),
timeout: {
idle: 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 |
---|---|---|
trust | Tls | Reference to where to retrieve the trust chain. |
subject | Subject | Represents the subject alternative names (SANs) secured by the certificate. |
trust
Type:
Tls
Reference to where to retrieve the trust chain.
subjectAlternativeNames?
Type:
Subject
(optional, default: If you don't specify SANs on the terminating mesh endpoint,
the Envoy proxy for that node doesn't verify the SAN on a peer client certificate.
If you don't specify SANs on the originating mesh endpoint,
the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration.)
Represents the subject alternative names (SANs) secured by the certificate.
SANs must be in the FQDN or URI format.