Skip to main content

notify_templates

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

Overview

Namenotify_templates
TypeResource
Idaws.pinpoint_sms_voice_v2.notify_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
channelsarrayThe channels for the template. Supported values are SMS and VOICE.
contentstringThe content of the template.
created_timestampstring (date-time)The time when the notify template was created, in UNIX epoch time format.
language_codestringThe language code for the template. (pattern: <code>[a-z]{2}(-[A-Z]{2})?</code>)
statusstringThe current status of the template. (ACTIVE, INACTIVE)
supported_countriesarrayAn array of supported country codes for the template.
supported_voice_idsarrayAn array of supported voice IDs for voice templates.
template_idstringTemplate identifier for notify templates. In UpdateNotifyConfiguration, pass UNSET_DEFAULT_TEMPLATE to clear the default template. The UNSET_DEFAULT_TEMPLATE value is only accepted by UpdateNotifyConfiguration. (pattern: <code>([A-Za-z0-9_-]*|UNSET_DEFAULT_TEMPLATE)</code>)
template_typestringThe type of the template. (OTP_VERIFICATION)
tier_accessarrayThe tier access level for the template.
variablesobjectAn array of template variable metadata for the template.
versionintegerThe version of the template.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_notify_templatesselectregionDescribes the specified notify templates or all notify templates in your account. If you specify template IDs, the output includes information for only the specified notify templates. If you specify filters, the output includes information for only those notify templates that meet the filter criteria. If you don't specify template IDs or filters, the output includes information for all notify templates. If you specify a template ID that isn't valid, an error is returned.

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

SELECT
channels,
content,
created_timestamp,
language_code,
status,
supported_countries,
supported_voice_ids,
template_id,
template_type,
tier_access,
variables,
version
FROM aws.pinpoint_sms_voice_v2.notify_templates
WHERE region = '{{ region }}' -- required
;