Skip to main content

configuration_sets

Creates, updates, deletes, gets or lists a configuration_sets resource.

Overview

Nameconfiguration_sets
TypeResource
Idaws.ses.configuration_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cloud_watch_destinationstringAn object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
enabledbooleanSets whether Amazon SES publishes events to this destination when you send an email with the associated configuration set. Set to true to enable publishing to this destination; set to false to prevent publishing to this destination. The default value is false.
kinesis_firehose_destinationstringAn object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
matching_event_typesstringThe type of email sending events to publish to the event destination. send - The call was successful and Amazon SES is attempting to deliver the email. reject - Amazon SES determined that the email contained a virus and rejected it. bounce - The recipient's mail server permanently rejected the email. This corresponds to a hard bounce. complaint - The recipient marked the email as spam. delivery - Amazon SES successfully delivered the email to the recipient's mail server. open - The recipient received the email and opened it in their email client. click - The recipient clicked one or more links in the email. renderingFailure - Amazon SES did not send the email because of a template rendering issue.
namestringThe name of the event destination. The name must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). Contain 64 characters or fewer.
sns_destinationstringAn object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_configuration_setselectConfigurationSetName, regionConfigurationSetAttributeNamesReturns the details of the specified configuration set. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
list_configuration_setsselectregionNextToken, MaxItemsProvides a list of the configuration sets associated with your Amazon SES account in the current Amazon Web Services Region. For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide. You can execute this operation no more than once per second. This operation returns up to 1,000 configuration sets each time it is run. If your Amazon SES account has more than 1,000 configuration sets, this operation also returns NextToken. You can then execute the ListConfigurationSets operation again, passing the NextToken parameter and the value of the NextToken element to retrieve additional results.
create_configuration_set_event_destinationinsertConfigurationSetName, EventDestination, regionCreates a configuration set event destination. When you create or update an event destination, you must provide one, and only one, destination. The destination can be CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). An event destination is the Amazon Web Services service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
create_configuration_set_tracking_optionsinsertConfigurationSetName, TrackingOptions, regionCreates an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide.
create_configuration_setinsertConfigurationSet, regionCreates a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
update_configuration_set_event_destinationupdateConfigurationSetName, EventDestination, regionUpdates the event destination of a configuration set. Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide. When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). You can execute this operation no more than once per second.
update_configuration_set_tracking_optionsupdateConfigurationSetName, TrackingOptions, regionModifies an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide.
update_configuration_set_reputation_metrics_enabledupdateConfigurationSetName, regionEnabledEnables or disables the publishing of reputation metrics for emails sent using a specific configuration set in a given Amazon Web Services Region. Reputation metrics include bounce and complaint rates. These metrics are published to Amazon CloudWatch. By using CloudWatch, you can create alarms when bounce or complaint rates exceed certain thresholds. You can execute this operation no more than once per second.
put_configuration_set_delivery_optionsreplaceConfigurationSetName, regionDeliveryOptionsAdds or updates the delivery options for a configuration set.
delete_configuration_set_event_destinationdeleteConfigurationSetName, EventDestinationName, regionDeletes a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
delete_configuration_setdeleteConfigurationSetName, regionDeletes a configuration set. Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
delete_configuration_set_tracking_optionsexecConfigurationSetName, regionDeletes an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide. Deleting this kind of association results in emails sent using the specified configuration set to capture open and click events using the standard, Amazon SES-operated domains.
update_configuration_set_sending_enabledexecConfigurationSetName, regionEnabledEnables or disables email sending for messages sent using a specific configuration set in a given Amazon Web Services Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending for a configuration set when the reputation metrics for that configuration set (such as your bounce on complaint rate) exceed certain thresholds. You can execute this operation no more than once per second.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ConfigurationSetobjectA data structure that contains the name of the configuration set.
ConfigurationSetNamestringThe name of the configuration set to update.
EventDestinationobjectThe event destination object.
EventDestinationNamestringThe name of the event destination to delete.
TrackingOptionsobject
regionstringAWS region (default: us-east-1)
ConfigurationSetAttributeNamesarrayA list of configuration set attributes to return.
DeliveryOptionsobjectSpecifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).
EnabledbooleanDescribes whether email sending is enabled or disabled for the configuration set.
MaxItemsintegerThe number of configuration sets to return.
NextTokenstringA token returned from a previous call to ListConfigurationSets to indicate the position of the configuration set in the configuration set list.

SELECT examples

Returns the details of the specified configuration set. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

SELECT
cloud_watch_destination,
enabled,
kinesis_firehose_destination,
matching_event_types,
name,
sns_destination
FROM aws.ses.configuration_sets
WHERE ConfigurationSetName = '{{ ConfigurationSetName }}' -- required
AND region = '{{ region }}' -- required
AND ConfigurationSetAttributeNames = '{{ ConfigurationSetAttributeNames }}'
;

INSERT examples

Creates a configuration set event destination. When you create or update an event destination, you must provide one, and only one, destination. The destination can be CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). An event destination is the Amazon Web Services service to which Amazon SES publishes the email sending events associated with a configuration set. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

INSERT INTO aws.ses.configuration_sets (
ConfigurationSetName,
EventDestination,
region
)
SELECT
'{{ ConfigurationSetName }}',
'{{ EventDestination }}',
'{{ region }}'
;

UPDATE examples

Updates the event destination of a configuration set. Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see Monitoring Your Amazon SES Sending Activity in the Amazon SES Developer Guide. When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). You can execute this operation no more than once per second.

UPDATE aws.ses.configuration_sets
SET
-- No updatable properties
WHERE
ConfigurationSetName = '{{ ConfigurationSetName }}' --required
AND EventDestination = '{{ EventDestination }}' --required
AND region = '{{ region }}' --required;

REPLACE examples

Adds or updates the delivery options for a configuration set.

REPLACE aws.ses.configuration_sets
SET
-- No updatable properties
WHERE
ConfigurationSetName = '{{ ConfigurationSetName }}' --required
AND region = '{{ region }}' --required
AND DeliveryOptions = '{{ DeliveryOptions}}';

DELETE examples

Deletes a configuration set event destination. Configuration set event destinations are associated with configuration sets, which enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

DELETE FROM aws.ses.configuration_sets
WHERE ConfigurationSetName = '{{ ConfigurationSetName }}' --required
AND EventDestinationName = '{{ EventDestinationName }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Deletes an association between a configuration set and a custom domain for open and click event tracking. By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide. Deleting this kind of association results in emails sent using the specified configuration set to capture open and click events using the standard, Amazon SES-operated domains.

EXEC aws.ses.configuration_sets.delete_configuration_set_tracking_options
@ConfigurationSetName='{{ ConfigurationSetName }}' --required,
@region='{{ region }}' --required
;