Skip to main content

notify_configurations

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

Overview

Namenotify_configurations
TypeResource
Idaws.pinpoint_sms_voice_v2.notify_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestampstring (date-time)The time when the notify configuration was created, in UNIX epoch time format.
default_template_idstringThe default template identifier associated with the notify configuration. (pattern: <code>([A-Za-z0-9_-]*|UNSET_DEFAULT_TEMPLATE)</code>)
deletion_protection_enabledbooleanWhen set to true deletion protection is enabled. By default this is set to false.
display_namestringThe display name associated with the notify configuration. (pattern: <code>[A-Za-z0-9_ -]+</code>)
enabled_channelsarrayAn array of channels enabled for the notify configuration. Supported values include SMS and VOICE.
enabled_countriesarrayAn array of two-character ISO country codes, in ISO 3166-1 alpha-2 format, that are enabled for the notify configuration.
notify_configuration_arnstringThe Amazon Resource Name (ARN) for the notify configuration. (pattern: <code>arn:\S+</code>)
notify_configuration_idstringThe unique identifier for the notify configuration. (pattern: <code>[A-Za-z0-9_-]+</code>)
pool_idstringThe identifier of the pool associated with the notify configuration.
rejection_reasonstringThe reason the notify configuration was rejected, if applicable.
statusstringThe current status of the notify configuration. (PENDING, ACTIVE, REJECTED, REQUIRES_VERIFICATION)
tierstringThe tier of the notify configuration. (BASIC, ADVANCED)
tier_upgrade_statusstringThe tier upgrade status of the notify configuration. (BASIC, PENDING_UPGRADE, ADVANCED, REJECTED)
use_casestringThe use case for the notify configuration. (CODE_VERIFICATION)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_notify_configurationsselectregionDescribes the specified notify configurations or all notify configurations in your account. If you specify notify configuration IDs, the output includes information for only the specified notify configurations. If you specify filters, the output includes information for only those notify configurations that meet the filter criteria. If you don't specify notify configuration IDs or filters, the output includes information for all notify configurations. If you specify a notify configuration ID that isn't valid, an error is returned.
create_notify_configurationinsertregion, DisplayName, UseCase, EnabledChannelsCreates a new notify configuration for managed messaging. A notify configuration defines the settings for sending templated messages, including the display name, use case, enabled channels, and enabled countries.
update_notify_configurationupdateregion, NotifyConfigurationIdUpdates an existing notify configuration. You can update the default template, pool association, enabled channels, enabled countries, and deletion protection settings.
delete_notify_configurationdeleteregionDeletes an existing notify configuration. If deletion protection is enabled, an error is returned.
send_notify_text_messageexecregion, NotifyConfigurationId, DestinationPhoneNumber, TemplateVariablesSends a templated text message through a notify configuration to a recipient's phone number.
send_notify_voice_messageexecregion, NotifyConfigurationId, DestinationPhoneNumber, TemplateVariablesSends a templated voice message through a notify configuration to a recipient's phone number.

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 notify configurations or all notify configurations in your account. If you specify notify configuration IDs, the output includes information for only the specified notify configurations. If you specify filters, the output includes information for only those notify configurations that meet the filter criteria. If you don't specify notify configuration IDs or filters, the output includes information for all notify configurations. If you specify a notify configuration ID that isn't valid, an error is returned.

SELECT
created_timestamp,
default_template_id,
deletion_protection_enabled,
display_name,
enabled_channels,
enabled_countries,
notify_configuration_arn,
notify_configuration_id,
pool_id,
rejection_reason,
status,
tier,
tier_upgrade_status,
use_case
FROM aws.pinpoint_sms_voice_v2.notify_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new notify configuration for managed messaging. A notify configuration defines the settings for sending templated messages, including the display name, use case, enabled channels, and enabled countries.

INSERT INTO aws.pinpoint_sms_voice_v2.notify_configurations (
DisplayName,
UseCase,
DefaultTemplateId,
PoolId,
EnabledCountries,
EnabledChannels,
DeletionProtectionEnabled,
ClientToken,
Tags,
region
)
SELECT
'{{ DisplayName }}' /* required */,
'{{ UseCase }}' /* required */,
'{{ DefaultTemplateId }}',
'{{ PoolId }}',
'{{ EnabledCountries }}',
'{{ EnabledChannels }}' /* required */,
{{ DeletionProtectionEnabled }},
'{{ ClientToken }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
created_timestamp,
default_template_id,
deletion_protection_enabled,
display_name,
enabled_channels,
enabled_countries,
notify_configuration_arn,
notify_configuration_id,
pool_id,
rejection_reason,
status,
tags,
tier,
tier_upgrade_status,
use_case
;

UPDATE examples

Updates an existing notify configuration. You can update the default template, pool association, enabled channels, enabled countries, and deletion protection settings.

UPDATE aws.pinpoint_sms_voice_v2.notify_configurations
SET
NotifyConfigurationId = '{{ NotifyConfigurationId }}',
DefaultTemplateId = '{{ DefaultTemplateId }}',
PoolId = '{{ PoolId }}',
EnabledCountries = '{{ EnabledCountries }}',
EnabledChannels = '{{ EnabledChannels }}',
DeletionProtectionEnabled = {{ DeletionProtectionEnabled }}
WHERE
region = '{{ region }}' --required
AND NotifyConfigurationId = '{{ NotifyConfigurationId }}' --required
RETURNING
created_timestamp,
default_template_id,
deletion_protection_enabled,
display_name,
enabled_channels,
enabled_countries,
notify_configuration_arn,
notify_configuration_id,
pool_id,
rejection_reason,
status,
tier,
tier_upgrade_status,
use_case;

DELETE examples

Deletes an existing notify configuration. If deletion protection is enabled, an error is returned.

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

Lifecycle Methods

Sends a templated text message through a notify configuration to a recipient's phone number.

EXEC aws.pinpoint_sms_voice_v2.notify_configurations.send_notify_text_message
@region='{{ region }}' --required
@@json=
'{
"NotifyConfigurationId": "{{ NotifyConfigurationId }}",
"DestinationPhoneNumber": "{{ DestinationPhoneNumber }}",
"TemplateId": "{{ TemplateId }}",
"TemplateVariables": "{{ TemplateVariables }}",
"TimeToLive": {{ TimeToLive }},
"Context": "{{ Context }}",
"ConfigurationSetName": "{{ ConfigurationSetName }}",
"DryRun": {{ DryRun }},
"MessageFeedbackEnabled": {{ MessageFeedbackEnabled }}
}'
;