ConfigurationSetTlsPolicy Enum
TLS policy for a configuration set.
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),
});
python
from aws_cdk import Duration
# my_pool: ses.IDedicatedIpPool
ses.ConfigurationSet(self, "ConfigurationSet",
tls_policy=ses.ConfigurationSetTlsPolicy.REQUIRE,
dedicated_ip_pool=my_pool,
# 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.
max_delivery_duration=Duration.minutes(10)
)
java
import software.amazon.awscdk.Duration;
IDedicatedIpPool myPool;
ConfigurationSet.Builder.create(this, "ConfigurationSet")
.tlsPolicy(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))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK;
IDedicatedIpPool myPool;
new ConfigurationSet(this, "ConfigurationSet", new ConfigurationSetProps {
TlsPolicy = 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)
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import "github.com/aws/aws-cdk-go/awscdk"
var myPool IDedicatedIpPool
ses.NewConfigurationSet(this, jsii.String("ConfigurationSet"), &ConfigurationSetProps{
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: awscdk.Duration_Minutes(jsii.Number(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.tlsPolicytls_policytlsPolicyTlsPolicyTlsPolicy