TlsValidation Struct
Represents the properties needed to define TLS Validation context.
Example
ts
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
subjectAlternativeNamesoptionalSubjectAlternativeNamessubject_alternative_namesoptionalSubjectAlternativeNamessubjectAlternativeNamesoptionalSubjectAlternativeNamesSubjectAlternativeNamesoptionalSubjectAlternativeNamesSubjectAlternativeNamesoptionalSubjectAlternativeNames#Represents the subject alternative names (SANs) secured by the certificate.
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.
SANs must be in the FQDN or URI format.
trustTlsValidationTrusttrustTlsValidationTrusttrustTlsValidationTrustTrustTlsValidationTrustTrustTlsValidationTrustrequired#Reference to where to retrieve the trust chain.