ConfigurationSet
- class aws_cdk.aws_ses.ConfigurationSet(scope, id, *, configuration_set_name=None, custom_tracking_https_policy=None, custom_tracking_redirect_domain=None, dedicated_ip_pool=None, disable_suppression_list=None, max_delivery_duration=None, reputation_metrics=None, sending_enabled=None, suppression_reasons=None, tls_policy=None, vdm_options=None)
Bases:
ResourceA configuration set.
- ExampleMetadata:
infused
Example:
ses.ConfigurationSet(self, "ConfigurationSet", custom_tracking_redirect_domain="track.cdk.dev", custom_tracking_https_policy=ses.HttpsPolicy.REQUIRE )
- Parameters:
scope (
Construct)id (
str)configuration_set_name (
Optional[str]) – A name for the configuration set. Default: - a CloudFormation generated namecustom_tracking_https_policy (
Optional[HttpsPolicy]) – The https policy to use for tracking open and click events. Default: - HttpsPolicy.OPTIONAL if customTrackingRedirectDomain is set, otherwise undefinedcustom_tracking_redirect_domain (
Optional[str]) – The custom subdomain that is used to redirect email recipients to the Amazon SES event tracking domain. Default: - use the default awstrack.me domaindedicated_ip_pool (
Optional[IDedicatedIpPool]) – The dedicated IP pool to associate with the configuration set. Default: - do not use a dedicated IP pooldisable_suppression_list (
Optional[bool]) – If true, account-level suppression list is disabled; email sent with this configuration set will not use any suppression settings at all Default: falsemax_delivery_duration (
Optional[Duration]) – The maximum amount of time that Amazon SES API v2 will attempt delivery of email. This value must be greater than or equal to 5 minutes and less than or equal to 14 hours. Default: undefined - SES defaults to 14 hoursreputation_metrics (
Optional[bool]) – Whether to publish reputation metrics for the configuration set, such as bounce and complaint rates, to Amazon CloudWatch. Default: truesending_enabled (
Optional[bool]) – Whether email sending is enabled. Default: truesuppression_reasons (
Optional[SuppressionReasons]) – The reasons for which recipient email addresses should be automatically added to your account’s suppression list. Default: - use account level settingstls_policy (
Optional[ConfigurationSetTlsPolicy]) – Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS). Default: ConfigurationSetTlsPolicy.OPTIONALvdm_options (
Union[VdmOptions,Dict[str,Any],None]) – The Virtual Deliverability Manager (VDM) options that apply to the configuration set. Default: - VDM options not configured at the configuration set level. In this case, use account level settings. (To set the account level settings using CDK, use theVdmAttributesConstruct.)
Methods
- add_event_destination(id, *, destination, configuration_set_event_destination_name=None, enabled=None, events=None)
Adds an event destination to this configuration set.
- Parameters:
id (
str)destination (
EventDestination) – The event destination.configuration_set_event_destination_name (
Optional[str]) – A name for the configuration set event destination. Default: - a CloudFormation generated nameenabled (
Optional[bool]) – Whether Amazon SES publishes events to this destination. Default: trueevents (
Optional[Sequence[EmailSendingEvent]]) – The type of email sending events to publish to the event destination. Default: - send all event types
- Return type:
- apply_removal_policy(policy)
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Parameters:
policy (
RemovalPolicy)- Return type:
None
- to_string()
Returns a string representation of this construct.
- Return type:
str
Attributes
- PROPERTY_INJECTION_ID = 'aws-cdk-lib.aws-ses.ConfigurationSet'
- configuration_set_name
The name of the configuration set.
- env
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.
- node
The tree node.
- stack
The stack in which this resource is defined.
Static Methods
- classmethod from_configuration_set_name(scope, id, configuration_set_name)
Use an existing configuration set.
- Parameters:
scope (
Construct)id (
str)configuration_set_name (
str)
- Return type:
- classmethod is_construct(x)
Checks if
xis a construct.Use this method instead of
instanceofto properly detectConstructinstances, even when the construct library is symlinked.Explanation: in JavaScript, multiple copies of the
constructslibrary on disk are seen as independent, completely different libraries. As a consequence, the classConstructin each copy of theconstructslibrary is seen as a different class, and an instance of one class will not test asinstanceofthe other class.npm installwill not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of theconstructslibrary can be accidentally installed, andinstanceofwill behave unpredictably. It is safest to avoid usinginstanceof, and using this type-testing method instead.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsConstruct.
- classmethod is_owned_resource(construct)
Returns true if the construct was created by CDK, and false otherwise.
- Parameters:
construct (
IConstruct)- Return type:
bool
- classmethod is_resource(construct)
Check whether the given construct is a Resource.
- Parameters:
construct (
IConstruct)- Return type:
bool