PinpointSMSVoiceV2 / Client / describe_notify_templates

describe_notify_templates

PinpointSMSVoiceV2.Client.describe_notify_templates(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.describe_notify_templates(
    TemplateIds=[
        'string',
    ],
    Filters=[
        {
            'Name': 'template-type'|'channels'|'tier-access'|'supported-countries'|'language-code'|'supported-voice-ids',
            'Values': [
                'string',
            ]
        },
    ],
    NextToken='string',
    MaxResults=123
)
Parameters:
  • TemplateIds (list) –

    An array of template IDs to describe.

    • (string) –

      Template 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.

  • Filters (list) –

    An array of NotifyTemplateFilter objects to filter the results on.

    • (dict) –

      The information for notify templates that meet a specified criteria.

      • Name (string) – [REQUIRED]

        The name of the attribute to filter on.

      • Values (list) – [REQUIRED]

        An array values to filter for.

        • (string) –

  • NextToken (string) – The token to be used for the next set of paginated results. You don’t need to supply a value for this field in the initial request.

  • MaxResults (integer) – The maximum number of results to return per each request.

Return type:

dict

Returns:

Response Syntax

{
    'NotifyTemplates': [
        {
            'TemplateId': 'string',
            'Version': 123,
            'TemplateType': 'OTP_VERIFICATION',
            'Channels': [
                'SMS'|'VOICE'|'MMS'|'RCS',
            ],
            'TierAccess': [
                'BASIC'|'ADVANCED',
            ],
            'Status': 'ACTIVE'|'INACTIVE',
            'SupportedCountries': [
                'string',
            ],
            'LanguageCode': 'string',
            'Content': 'string',
            'Variables': {
                'string': {
                    'Type': 'STRING'|'INTEGER'|'BOOLEAN',
                    'Required': True|False,
                    'Description': 'string',
                    'MaxLength': 123,
                    'MinValue': 123,
                    'MaxValue': 123,
                    'DefaultValue': 'string',
                    'Pattern': 'string',
                    'Sample': 'string',
                    'Source': 'CUSTOMER'|'SYSTEM'
                }
            },
            'SupportedVoiceIds': [
                'AMY'|'ASTRID'|'BIANCA'|'BRIAN'|'CAMILA'|'CARLA'|'CARMEN'|'CELINE'|'CHANTAL'|'CONCHITA'|'CRISTIANO'|'DORA'|'EMMA'|'ENRIQUE'|'EWA'|'FILIZ'|'GERAINT'|'GIORGIO'|'GWYNETH'|'HANS'|'INES'|'IVY'|'JACEK'|'JAN'|'JOANNA'|'JOEY'|'JUSTIN'|'KARL'|'KENDRA'|'KIMBERLY'|'LEA'|'LIV'|'LOTTE'|'LUCIA'|'LUPE'|'MADS'|'MAJA'|'MARLENE'|'MATHIEU'|'MATTHEW'|'MAXIM'|'MIA'|'MIGUEL'|'MIZUKI'|'NAJA'|'NICOLE'|'PENELOPE'|'RAVEENA'|'RICARDO'|'RUBEN'|'RUSSELL'|'SALLI'|'SEOYEON'|'TAKUMI'|'TATYANA'|'VICKI'|'VITORIA'|'ZEINA'|'ZHIYU',
            ],
            'CreatedTimestamp': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • NotifyTemplates (list) –

      An array of NotifyTemplateInformation objects that contain the results.

      • (dict) –

        The information for a system-managed notify template in an Amazon Web Services account.

        • TemplateId (string) –

          The unique identifier for the template.

        • Version (integer) –

          The version of the template.

        • TemplateType (string) –

          The type of the template.

        • Channels (list) –

          The channels for the template. Supported values are SMS and VOICE.

          • (string) –

        • TierAccess (list) –

          The tier access level for the template.

          • (string) –

            The tier of a notify configuration.

            • BASIC - Basic tier.

            • ADVANCED - Advanced tier.

        • Status (string) –

          The current status of the template.

        • SupportedCountries (list) –

          An array of supported country codes for the template.

          • (string) –

        • LanguageCode (string) –

          The language code for the template.

        • Content (string) –

          The content of the template.

        • Variables (dict) –

          An array of template variable metadata for the template.

          • (string) –

            • (dict) –

              Contains metadata about a template variable.

              • Type (string) –

                The type of the variable.

              • Required (boolean) –

                Whether the variable is required.

              • Description (string) –

                A description of the variable.

              • MaxLength (integer) –

                The maximum length for string variables.

              • MinValue (integer) –

                The minimum value for numeric variables.

              • MaxValue (integer) –

                The maximum value for numeric variables.

              • DefaultValue (string) –

                The default value for the variable.

              • Pattern (string) –

                The regex pattern the variable value must match.

              • Sample (string) –

                A sample value for the variable.

              • Source (string) –

                The source of the variable, either CUSTOMER or SYSTEM.

        • SupportedVoiceIds (list) –

          An array of supported voice IDs for voice templates.

          • (string) –

        • CreatedTimestamp (datetime) –

          The time when the notify template was created, in UNIX epoch time format.

    • NextToken (string) –

      The token to be used for the next set of paginated results. If this field is empty then there are no more results.

Exceptions