# TlsValidationTrustConfig

All Properties for TLS Validation Trusts for both Client Policy and Listener.

Returned by: [TlsValidationTrust.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.TlsValidationTrust.html#bind)

- Source: [`aws-appmesh/lib/tls-validation.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appmesh/lib/tls-validation.ts#L46)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
        }
    }
};
```

Golang:

```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

- `tlsValidationTrust`: [CfnVirtualNode.TlsValidationContextTrustProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.TlsValidationContextTrustProperty.html) (required) — VirtualNode CFN configuration for client policy's TLS Validation Trust.
