TlsValidationTrustConfig Struct
All Properties for TLS Validation Trusts for both Client Policy and Listener.
| Source | aws-appmesh/lib/tls-validation.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const tlsValidationTrustConfig: appmesh.TlsValidationTrustConfig = {
tlsValidationTrust: {
acm: {
certificateAuthorityArns: ['certificateAuthorityArns'],
},
file: {
certificateChain: 'certificateChain',
},
sds: {
secretName: 'secretName',
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh
tls_validation_trust_config = appmesh.TlsValidationTrustConfig(
tls_validation_trust=appmesh.CfnVirtualNode.TlsValidationContextTrustProperty(
acm=appmesh.CfnVirtualNode.TlsValidationContextAcmTrustProperty(
certificate_authority_arns=["certificateAuthorityArns"]
),
file=appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty(
certificate_chain="certificateChain"
),
sds=appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty(
secret_name="secretName"
)
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;
TlsValidationTrustConfig tlsValidationTrustConfig = TlsValidationTrustConfig.builder()
.tlsValidationTrust(TlsValidationContextTrustProperty.builder()
.acm(TlsValidationContextAcmTrustProperty.builder()
.certificateAuthorityArns(List.of("certificateAuthorityArns"))
.build())
.file(TlsValidationContextFileTrustProperty.builder()
.certificateChain("certificateChain")
.build())
.sds(TlsValidationContextSdsTrustProperty.builder()
.secretName("secretName")
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var tlsValidationTrustConfig = new TlsValidationTrustConfig {
TlsValidationTrust = new TlsValidationContextTrustProperty {
Acm = new TlsValidationContextAcmTrustProperty {
CertificateAuthorityArns = new [] { "certificateAuthorityArns" }
},
File = new TlsValidationContextFileTrustProperty {
CertificateChain = "certificateChain"
},
Sds = new TlsValidationContextSdsTrustProperty {
SecretName = "secretName"
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
tlsValidationTrustConfig := &TlsValidationTrustConfig{
TlsValidationTrust: &TlsValidationContextTrustProperty{
Acm: &TlsValidationContextAcmTrustProperty{
CertificateAuthorityArns: []*string{
jsii.String("certificateAuthorityArns"),
},
},
File: &TlsValidationContextFileTrustProperty{
CertificateChain: jsii.String("certificateChain"),
},
Sds: &TlsValidationContextSdsTrustProperty{
SecretName: jsii.String("secretName"),
},
},
}
Properties
tlsValidationTrustCfnVirtualNode.tls_validation_trustTlsValidationContextTrustPropertytlsValidationTrustTlsValidationContextTrustPropertyTlsValidationTrustTlsValidationContextTrustPropertyTlsValidationTrustTlsValidationContextTrustProperty required #VirtualNode CFN configuration for client policy's TLS Validation Trust.