Skip to main content

configuration_sets

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

Overview

Nameconfiguration_sets
TypeResource
Idaws.pinpoint_email.configuration_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configuration_set_namestringThe name of a configuration set. In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.
delivery_optionsobjectUsed to associate a configuration set with a dedicated IP pool.
reputation_optionsobjectEnable or disable collection of reputation metrics for emails that you send using this configuration set in the current AWS Region.
sending_optionsobjectUsed to enable or disable email sending for messages that use this configuration set in the current AWS Region.
tagsarrayAn array of objects that define the tags (keys and values) that are associated with the configuration set.
tracking_optionsobjectAn object that defines the tracking options for a configuration set. When you use Amazon Pinpoint to send an email, it contains an invisible image that's used to track when recipients open your email. If your email contains links, those links are changed slightly in order to track when recipients click them. These images and links include references to a domain operated by AWS. You can optionally configure Amazon Pinpoint to use a domain that you operate for these images and links.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configuration_setselectconfiguration_set_name, regionGet information about an existing configuration set, including the dedicated IP pool that it's associated with, whether or not it's enabled for sending email, and more. In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.
list_configuration_setsselectregionNextToken, PageSizeList all of the configuration sets associated with your Amazon Pinpoint account in the current region. In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.
create_configuration_setinsertregion, ConfigurationSetNameCreate a configuration set. Configuration sets are groups of rules that you can apply to the emails you send using Amazon Pinpoint. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.
put_configuration_set_delivery_optionsreplaceconfiguration_set_name, regionAssociate a configuration set with a dedicated IP pool. You can use dedicated IP pools to create groups of dedicated IP addresses for sending specific types of email.
delete_configuration_setdeleteconfiguration_set_name, regionDelete an existing configuration set. In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.
put_configuration_set_reputation_optionsexecconfiguration_set_name, regionEnable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific AWS Region.
put_configuration_set_sending_optionsexecconfiguration_set_name, regionEnable or disable email sending for messages that use a particular configuration set in a specific AWS Region.
put_configuration_set_tracking_optionsexecconfiguration_set_name, regionSpecify a custom domain to use for open and click tracking elements in email that you send using Amazon Pinpoint.

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
configuration_set_namestringThe name of the configuration set that you want to add a custom tracking domain to.
regionstringAWS region (default: us-east-1)
NextTokenstringA token returned from a previous call to ListConfigurationSets to indicate the position in the list of configuration sets.
PageSizeintegerThe number of results to show in a single call to ListConfigurationSets. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

SELECT examples

Get information about an existing configuration set, including the dedicated IP pool that it's associated with, whether or not it's enabled for sending email, and more. In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

SELECT
configuration_set_name,
delivery_options,
reputation_options,
sending_options,
tags,
tracking_options
FROM aws.pinpoint_email.configuration_sets
WHERE configuration_set_name = '{{ configuration_set_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a configuration set. Configuration sets are groups of rules that you can apply to the emails you send using Amazon Pinpoint. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

INSERT INTO aws.pinpoint_email.configuration_sets (
ConfigurationSetName,
TrackingOptions,
DeliveryOptions,
ReputationOptions,
SendingOptions,
Tags,
region
)
SELECT
'{{ ConfigurationSetName }}' /* required */,
'{{ TrackingOptions }}',
'{{ DeliveryOptions }}',
'{{ ReputationOptions }}',
'{{ SendingOptions }}',
'{{ Tags }}',
'{{ region }}'
;

REPLACE examples

Associate a configuration set with a dedicated IP pool. You can use dedicated IP pools to create groups of dedicated IP addresses for sending specific types of email.

REPLACE aws.pinpoint_email.configuration_sets
SET
TlsPolicy = '{{ TlsPolicy }}',
SendingPoolName = '{{ SendingPoolName }}'
WHERE
configuration_set_name = '{{ configuration_set_name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Delete an existing configuration set. In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

DELETE FROM aws.pinpoint_email.configuration_sets
WHERE configuration_set_name = '{{ configuration_set_name }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific AWS Region.

EXEC aws.pinpoint_email.configuration_sets.put_configuration_set_reputation_options
@configuration_set_name='{{ configuration_set_name }}' --required,
@region='{{ region }}' --required
@@json=
'{
"ReputationMetricsEnabled": {{ ReputationMetricsEnabled }}
}'
;