Skip to main content

configuration_sets

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

Overview

Nameconfiguration_sets
TypeResource
Idaws.pinpoint_sms_voice_v2.configuration_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configuration_set_arnstringThe Resource Name (ARN) of the ConfigurationSet.
configuration_set_namestringThe name of the ConfigurationSet. (pattern: <code>[A-Za-z0-9_-]+</code>)
created_timestampstring (date-time)The time when the ConfigurationSet was created, in UNIX epoch time format.
default_message_feedback_enabledbooleanTrue if message feedback is enabled.
default_message_typestringThe type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive. (TRANSACTIONAL, PROMOTIONAL)
default_sender_idstringThe default sender ID used by the ConfigurationSet. (pattern: <code>[A-Za-z0-9_-]+</code>)
event_destinationsarrayAn array of EventDestination objects that describe any events to log and where to log them.
protect_configuration_idstringThe unique identifier for the protect configuration. (pattern: <code>[A-Za-z0-9_:/-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_configuration_setsselectregionDescribes the specified configuration sets or all in your account. If you specify configuration set names, the output includes information for only the specified configuration sets. If you specify filters, the output includes information for only those configuration sets that meet the filter criteria. If you don't specify configuration set names or filters, the output includes information for all configuration sets. If you specify a configuration set name that isn't valid, an error is returned.
create_event_destinationinsertregion, ConfigurationSetName, EventDestinationName, MatchingEventTypesCreates a new event destination in a configuration set. An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic. You can only create one event destination at a time. You must provide a value for a single event destination using either CloudWatchLogsDestination, KinesisFirehoseDestination or SnsDestination. If an event destination isn't provided then an exception is returned. Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Firehose destination.
create_configuration_setinsertregion, ConfigurationSetNameCreates a new configuration set. After you create the configuration set, you can add one or more event destinations to it. A configuration set is a set of rules that you apply to the SMS and voice messages that you send. When you send a message, you can optionally specify a single configuration set.
set_default_message_feedback_enabledupdateregion, ConfigurationSetName, MessageFeedbackEnabledSets a configuration set's default for message feedback.
set_default_message_typeupdateregion, ConfigurationSetName, MessageTypeSets the default message type on a configuration set. Choose the category of SMS messages that you plan to send from this account. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.
update_event_destinationupdateregion, ConfigurationSetName, EventDestinationNameUpdates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and Firehose. You can also enable or disable the event destination. You may want to update an event destination to change its matching event types or updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Firehose, and Amazon SNS.
delete_event_destinationdeleteregionDeletes an existing event destination. An event destination is a location where you send response information about the messages that you send. For example, when a message is delivered successfully, you can send information about that event to an Amazon CloudWatch destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.
delete_configuration_setdeleteregionDeletes an existing configuration set. A configuration set is a set of rules that you apply to voice and SMS messages that you send. In a configuration set, you can specify a destination for specific types of events related to voice and SMS messages.
delete_default_message_typeexecregion, ConfigurationSetNameDeletes an existing default message type on a configuration set. A message type is a type of messages that you plan to send. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specified configuration sets or all in your account. If you specify configuration set names, the output includes information for only the specified configuration sets. If you specify filters, the output includes information for only those configuration sets that meet the filter criteria. If you don't specify configuration set names or filters, the output includes information for all configuration sets. If you specify a configuration set name that isn't valid, an error is returned.

SELECT
configuration_set_arn,
configuration_set_name,
created_timestamp,
default_message_feedback_enabled,
default_message_type,
default_sender_id,
event_destinations,
protect_configuration_id
FROM aws.pinpoint_sms_voice_v2.configuration_sets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new event destination in a configuration set. An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic. You can only create one event destination at a time. You must provide a value for a single event destination using either CloudWatchLogsDestination, KinesisFirehoseDestination or SnsDestination. If an event destination isn't provided then an exception is returned. Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Firehose destination.

INSERT INTO aws.pinpoint_sms_voice_v2.configuration_sets (
ConfigurationSetName,
EventDestinationName,
MatchingEventTypes,
CloudWatchLogsDestination,
KinesisFirehoseDestination,
SnsDestination,
ClientToken,
region
)
SELECT
'{{ ConfigurationSetName }}' /* required */,
'{{ EventDestinationName }}' /* required */,
'{{ MatchingEventTypes }}' /* required */,
'{{ CloudWatchLogsDestination }}',
'{{ KinesisFirehoseDestination }}',
'{{ SnsDestination }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
configuration_set_arn,
configuration_set_name,
event_destination
;

UPDATE examples

Sets a configuration set's default for message feedback.

UPDATE aws.pinpoint_sms_voice_v2.configuration_sets
SET
ConfigurationSetName = '{{ ConfigurationSetName }}',
MessageFeedbackEnabled = {{ MessageFeedbackEnabled }}
WHERE
region = '{{ region }}' --required
AND ConfigurationSetName = '{{ ConfigurationSetName }}' --required
AND MessageFeedbackEnabled = {{ MessageFeedbackEnabled }} --required
RETURNING
configuration_set_arn,
configuration_set_name,
message_feedback_enabled;

DELETE examples

Deletes an existing event destination. An event destination is a location where you send response information about the messages that you send. For example, when a message is delivered successfully, you can send information about that event to an Amazon CloudWatch destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.

DELETE FROM aws.pinpoint_sms_voice_v2.configuration_sets
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Deletes an existing default message type on a configuration set. A message type is a type of messages that you plan to send. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.

EXEC aws.pinpoint_sms_voice_v2.configuration_sets.delete_default_message_type
@region='{{ region }}' --required
@@json=
'{
"ConfigurationSetName": "{{ ConfigurationSetName }}"
}'
;