# ListenerTlsValidationContextTrustProperty

An object that represents a listener's Transport Layer Security (TLS) validation context trust.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 listenerTlsValidationContextTrustProperty: appmesh.CfnVirtualNode.ListenerTlsValidationContextTrustProperty = {
  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

listener_tls_validation_context_trust_property = appmesh.CfnVirtualNode.ListenerTlsValidationContextTrustProperty(
    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.*;

ListenerTlsValidationContextTrustProperty listenerTlsValidationContextTrustProperty = ListenerTlsValidationContextTrustProperty.builder()
        .file(TlsValidationContextFileTrustProperty.builder()
                .certificateChain("certificateChain")
                .build())
        .sds(TlsValidationContextSdsTrustProperty.builder()
                .secretName("secretName")
                .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 listenerTlsValidationContextTrustProperty = new ListenerTlsValidationContextTrustProperty {
    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"

listenerTlsValidationContextTrustProperty := &ListenerTlsValidationContextTrustProperty{
	File: &TlsValidationContextFileTrustProperty{
		CertificateChain: jsii.String("certificateChain"),
	},
	Sds: &TlsValidationContextSdsTrustProperty{
		SecretName: jsii.String("secretName"),
	},
}
```

## Properties

- `file`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.TlsValidationContextFileTrustProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.TlsValidationContextFileTrustProperty.html) — An object that represents a Transport Layer Security (TLS) validation context trust for a local file.

- `sds`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.TlsValidationContextSdsTrustProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.TlsValidationContextSdsTrustProperty.html) — A reference to an object that represents a listener's Transport Layer Security (TLS) Secret Discovery Service validation context trust.
