# ConfigurationSetTlsPolicy

TLS policy for a configuration set.

- Source: [`aws-ses/lib/configuration-set.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-ses/lib/configuration-set.ts#L164)
- Type last changed: v2.32.0 · 14 Jul 2022

## Example

```ts
import { Duration } from 'aws-cdk-lib';

declare const myPool: ses.IDedicatedIpPool;

new ses.ConfigurationSet(this, 'ConfigurationSet', {
  tlsPolicy: ses.ConfigurationSetTlsPolicy.REQUIRE,
  dedicatedIpPool: myPool,
  // Specify maximum delivery time
  // This configuration can be useful in such cases as time-sensitive emails (like those containing a one-time-password),
  // transactional emails, and email that you want to ensure isn't delivered during non-business hours.
  maxDeliveryDuration: Duration.minutes(10),
});
```

## Members

| Member | Description |
| --- | --- |
| `REQUIRE` | Messages are only delivered if a TLS connection can be established. |
| `OPTIONAL` | Messages can be delivered in plain text if a TLS connection can't be established. |

## Referenced by

- [`ConfigurationSetProps`](/v2/docs/aws-cdk-lib.aws_ses.ConfigurationSetProps).tlsPolicy
