# VirtualGatewayClientPolicyTlsProperty

An object that represents a Transport Layer Security (TLS) client policy.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 virtualGatewayClientPolicyTlsProperty: appmesh.CfnVirtualGateway.VirtualGatewayClientPolicyTlsProperty = {
  validation: {
    trust: {
      acm: {
        certificateAuthorityArns: ['certificateAuthorityArns'],
      },
      file: {
        certificateChain: 'certificateChain',
      },
      sds: {
        secretName: 'secretName',
      },
    },

    // the properties below are optional
    subjectAlternativeNames: {
      match: {
        exact: ['exact'],
      },
    },
  },

  // the properties below are optional
  certificate: {
    file: {
      certificateChain: 'certificateChain',
      privateKey: 'privateKey',
    },
    sds: {
      secretName: 'secretName',
    },
  },
  enforce: false,
  ports: [123],
};
```

## Properties

- `certificate`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualGateway.VirtualGatewayClientTlsCertificateProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualGateway.VirtualGatewayClientTlsCertificateProperty.html) — A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.

- `enforce`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether the policy is enforced.

  The default is `True` , if a value isn't specified.

- `ports`: number[] | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — One or more ports that the policy is enforced for.

- `validation`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualGateway.VirtualGatewayTlsValidationContextProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualGateway.VirtualGatewayTlsValidationContextProperty.html) (required) — A reference to an object that represents a Transport Layer Security (TLS) validation context.
