AWS End User Messaging

2026/10/01 - AWS End User Messaging - 27 new api methods

Changes  AWS End User Messaging now supports Brand profiles and Notify code configurations. Brand profiles capture your sender details once to reuse across phone number registrations. Notify code configurations let you define your OTP policy and delivery settings to send passcodes in minutes.

ListJobs (new) Link ¶

Retrieves a paginated list of the asynchronous jobs in your account. You can filter the results by status, brand profile, or operation type.

See also: AWS API Documentation

Request Syntax

client.list_jobs(
    maxResults=123,
    nextToken='string',
    status='SUCCESS'|'PROCESSING'|'FAILED',
    brandProfileId='string',
    operationType='string'
)
type maxResults:

integer

param maxResults:

The maximum number of results to return per page.

type nextToken:

string

param nextToken:

The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

type status:

string

param status:

Filters the results to jobs that have the specified status.

type brandProfileId:

string

param brandProfileId:

Filters the results to jobs for the specified brand profile.

type operationType:

string

param operationType:

Filters the results to jobs of the specified operation type.

rtype:

dict

returns:

Response Syntax

{
    'jobs': [
        {
            'jobId': 'string',
            'status': 'SUCCESS'|'PROCESSING'|'FAILED',
            'operationType': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'brandProfileId': 'string',
            'errorCode': 'string',
            'errorMessage': 'string',
            'resources': [
                {
                    'resourceType': 'REGISTRATION'|'BRAND_PROFILE',
                    'resourceId': 'string',
                    'resourceArn': 'string'
                },
            ]
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • jobs (list) --

      The list of asynchronous jobs.

      • (dict) --

        Contains summary information about an asynchronous job in a list response.

        • jobId (string) --

          The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

        • status (string) --

          The current lifecycle status of the job.

        • operationType (string) --

          The type of mutating operation that created the job.

        • createdAt (datetime) --

          The time when the resource was created, in Unix epoch time.

        • updatedAt (datetime) --

          The time when the resource was last updated, in Unix epoch time.

        • brandProfileId (string) --

          The brand profile that the job operates on. This value is absent for operations that create a brand profile.

        • errorCode (string) --

          A machine-readable code that identifies why the job failed. This value is present only when the job status is FAILED.

        • errorMessage (string) --

          A human-readable description of why the job failed. This value is present only when the job status is FAILED.

        • resources (list) --

          The resources that were created or updated by the job.

          • (dict) --

            Contains information about a resource that was created or updated by an asynchronous job.

            • resourceType (string) --

              The type of the resource that the job created or updated.

            • resourceId (string) --

              The identifier of the resource that the job created or updated.

            • resourceArn (string) --

              The Amazon Resource Name (ARN) of the resource.

    • nextToken (string) --

      The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

ListTagsForResource (new) Link ¶

Retrieves the tags that are associated with a resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    resourceArn='string'
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource.

rtype:

dict

returns:

Response Syntax

{
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • tags (list) --

      An array of key and value pair tags that are associated with the resource.

      • (dict) --

        Describes a tag as a key and value pair that you can associate with a resource.

        • key (string) --

          The key of the tag.

        • value (string) --

          The value of the tag.

UpdateBrandProfile (new) Link ¶

Updates the name or the deletion protection setting of a brand profile. To change the information that is stored in the profile, use the brand profile attribute operations.

See also: AWS API Documentation

Request Syntax

client.update_brand_profile(
    brandProfileId='string',
    brandProfileName='string',
    deletionProtectionEnabled=True|False
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type brandProfileName:

string

param brandProfileName:

The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

type deletionProtectionEnabled:

boolean

param deletionProtectionEnabled:

Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

rtype:

dict

returns:

Response Syntax

{
    'brandProfileId': 'string',
    'brandProfileArn': 'string',
    'brandProfileName': 'string',
    'status': 'ACTIVE'|'BLOCKED'|'PAUSED'|'CANCELLED'|'FAILED',
    'deletionProtectionEnabled': True|False,
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • brandProfileId (string) --

      The unique identifier of the brand profile.

    • brandProfileArn (string) --

      The Amazon Resource Name (ARN) of the brand profile.

    • brandProfileName (string) --

      The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

    • status (string) --

      The current lifecycle status of the brand profile.

    • deletionProtectionEnabled (boolean) --

      Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

    • createdAt (datetime) --

      The time when the resource was created, in Unix epoch time.

    • updatedAt (datetime) --

      The time when the resource was last updated, in Unix epoch time.

GetBrandProfileAttribute (new) Link ¶

Retrieves a single brand profile attribute.

See also: AWS API Documentation

Request Syntax

client.get_brand_profile_attribute(
    brandProfileId='string',
    attributeName='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type attributeName:

string

param attributeName:

[REQUIRED]

The name of the brand profile attribute. The name is unique within a brand profile.

rtype:

dict

returns:

Response Syntax

{
    'attributeName': 'string',
    'attributeType': 'TEXT'|'IMAGE'|'DOCUMENT',
    'attributeValue': 'string',
    'description': 'string',
    'category': 'string',
    'mediaContentType': 'string',
    'mediaSizeBytes': 123,
    'mediaDownloadUrl': 'string',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • attributeName (string) --

      The name of the brand profile attribute. The name is unique within a brand profile.

    • attributeType (string) --

      The type of the attribute. TEXT stores an inline value. IMAGE and DOCUMENT store binary media that you upload.

    • attributeValue (string) --

      The text value of the attribute. This value applies to attributes of type TEXT.

    • description (string) --

      A description of the attribute.

    • category (string) --

      The category of the attribute.

    • mediaContentType (string) --

      The MIME content type of the attribute media.

    • mediaSizeBytes (integer) --

      The size of the attribute media, in bytes.

    • mediaDownloadUrl (string) --

      A presigned Amazon S3 URL that you can use to download the attribute media. The URL is valid for one hour and is present only for attributes of type IMAGE or DOCUMENT.

    • createdAt (datetime) --

      The time when the resource was created, in Unix epoch time.

    • updatedAt (datetime) --

      The time when the resource was last updated, in Unix epoch time.

CreateBrandProfile (new) Link ¶

Creates a brand profile. A brand profile is a lightweight container that holds your brand identity information as flexible attributes. After you create a brand profile, use the CreateBrandProfileAttributes operation to add company information, addresses, compliance documents, and logos.

See also: AWS API Documentation

Request Syntax

client.create_brand_profile(
    brandProfileName='string',
    clientToken='string',
    deletionProtectionEnabled=True|False,
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type brandProfileName:

string

param brandProfileName:

[REQUIRED]

The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

type deletionProtectionEnabled:

boolean

param deletionProtectionEnabled:

Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

type tags:

list

param tags:

An array of key and value pair tags that are associated with the resource.

  • (dict) --

    Describes a tag as a key and value pair that you can associate with a resource.

    • key (string) -- [REQUIRED]

      The key of the tag.

    • value (string) -- [REQUIRED]

      The value of the tag.

rtype:

dict

returns:

Response Syntax

{
    'brandProfileId': 'string',
    'brandProfileArn': 'string',
    'brandProfileName': 'string',
    'status': 'ACTIVE'|'BLOCKED'|'PAUSED'|'CANCELLED'|'FAILED',
    'deletionProtectionEnabled': True|False,
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'attributesCreated': 123
}

Response Structure

  • (dict) --

    • brandProfileId (string) --

      The unique identifier of the brand profile.

    • brandProfileArn (string) --

      The Amazon Resource Name (ARN) of the brand profile.

    • brandProfileName (string) --

      The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

    • status (string) --

      The current lifecycle status of the brand profile.

    • deletionProtectionEnabled (boolean) --

      Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

    • createdAt (datetime) --

      The time when the resource was created, in Unix epoch time.

    • updatedAt (datetime) --

      The time when the resource was last updated, in Unix epoch time.

    • attributesCreated (integer) --

      The number of default attributes that were created for the brand profile.

ListBrandProfiles (new) Link ¶

Retrieves a paginated list of the brand profiles in your account. Use the nextToken parameter to retrieve additional results.

See also: AWS API Documentation

Request Syntax

client.list_brand_profiles(
    nextToken='string',
    maxResults=123
)
type nextToken:

string

param nextToken:

The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

type maxResults:

integer

param maxResults:

The maximum number of results to return per page.

rtype:

dict

returns:

Response Syntax

{
    'brandProfiles': [
        {
            'brandProfileId': 'string',
            'brandProfileArn': 'string',
            'brandProfileName': 'string',
            'status': 'ACTIVE'|'BLOCKED'|'PAUSED'|'CANCELLED'|'FAILED',
            'deletionProtectionEnabled': True|False,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • brandProfiles (list) --

      The list of brand profiles.

      • (dict) --

        Contains information about a brand profile.

        • brandProfileId (string) --

          The unique identifier of the brand profile.

        • brandProfileArn (string) --

          The Amazon Resource Name (ARN) of the brand profile.

        • brandProfileName (string) --

          The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

        • status (string) --

          The current lifecycle status of the brand profile.

        • deletionProtectionEnabled (boolean) --

          Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

        • createdAt (datetime) --

          The time when the resource was created, in Unix epoch time.

        • updatedAt (datetime) --

          The time when the resource was last updated, in Unix epoch time.

    • nextToken (string) --

      The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

UpdateNotifyCodeConfiguration (new) Link ¶

Updates the mutable fields of a notify code configuration. Only the fields that you supply are changed. For the template and language fields, supplying an empty value clears the currently stored value.

See also: AWS API Documentation

Request Syntax

client.update_notify_code_configuration(
    notifyCodeConfigurationId='string',
    notifyCodeConfigurationName='string',
    codeConfigurationParameters={
        'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
        'codeLength': 123,
        'validityPeriodMinutes': 123,
        'maxAttempts': 123
    },
    channelParameters={
        'text': {
            'inlineTemplateBody': 'string',
            'destinationCountryParameters': {
                'string': 'string'
            }
        },
        'voice': {
            'inlineTemplateBody': 'string',
            'languageCode': 'string',
            'voiceId': 'string',
            'voiceMessageBodyTextType': 'TEXT'|'SSML'
        },
        'notify': {
            'notifyTemplateId': 'string',
            'voiceId': 'string'
        },
        'whatsApp': {
            'whatsAppTemplateName': 'string',
            'languageCode': 'string'
        }
    },
    deletionProtectionEnabled=True|False
)
type notifyCodeConfigurationId:

string

param notifyCodeConfigurationId:

[REQUIRED]

The unique identifier of the notify code configuration. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type notifyCodeConfigurationName:

string

param notifyCodeConfigurationName:

The name of the notify code configuration.

type codeConfigurationParameters:

dict

param codeConfigurationParameters:

The updated passcode policy parameters, including the code type, length, validity period, and maximum number of attempts. When you omit a member, its current value is preserved.

  • codeType (string) --

    The updated character set used to generate the one-time passcode. Omit this member to preserve the current value.

  • codeLength (integer) --

    The updated number of characters in the one-time passcode. Valid values range from 4 through 8. Omit this member to preserve the current value.

  • validityPeriodMinutes (integer) --

    The updated length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. Omit this member to preserve the current value.

  • maxAttempts (integer) --

    The updated maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. Omit this member to preserve the current value.

type channelParameters:

dict

param channelParameters:

The updated channel-specific parameters used to render and deliver the one-time passcode. This is a loose, nested update: when you omit a channel, that channel's parameters remain unchanged. Within a supplied channel, an empty string on a string member, or an empty map on the destination-country parameters, clears the currently stored value, and absent members preserve the current value.

  • text (dict) --

    The text-channel parameters to update. Omit this member to leave the text-channel parameters unchanged.

    • inlineTemplateBody (string) --

      The updated freeform SMS or RCS template body. An empty string clears the previously stored value.

    • destinationCountryParameters (dict) --

      The updated map of country-specific parameters that control one-time passcode delivery. An empty map clears the previously stored value.

      • (string) --

        Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

        • (string) --

          Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

  • voice (dict) --

    The voice-channel parameters to update. Omit this member to leave the voice-channel parameters unchanged.

    • inlineTemplateBody (string) --

      The updated freeform voice template body. An empty string clears the previously stored value.

    • languageCode (string) --

      The updated BCP 47 language code. An empty string clears the previously stored value.

    • voiceId (string) --

      The updated Amazon Polly voice ID. An empty string clears the previously stored value.

    • voiceMessageBodyTextType (string) --

      The updated format of the voice message body. Valid values are TEXT and SSML. Omit this member to preserve the current value.

  • notify (dict) --

    The notify-template-route parameters to update. Omit this member to leave them unchanged.

    • notifyTemplateId (string) --

      The updated identifier of a preapproved notify template for the SMS or voice channels. An empty string clears the previously stored value.

    • voiceId (string) --

      The updated Amazon Polly voice ID. An empty string clears the previously stored value.

  • whatsApp (dict) --

    The WhatsApp-channel parameters to update. Omit this member to leave the WhatsApp-channel parameters unchanged.

    • whatsAppTemplateName (string) --

      The updated name of the Meta-approved WhatsApp authentication template. An empty string clears the previously stored value.

    • languageCode (string) --

      The updated BCP 47 language code. An empty string clears the previously stored value.

type deletionProtectionEnabled:

boolean

param deletionProtectionEnabled:

Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

rtype:

dict

returns:

Response Syntax

{
    'notifyCodeConfiguration': {
        'notifyCodeConfigurationId': 'string',
        'notifyCodeConfigurationArn': 'string',
        'notifyCodeConfigurationName': 'string',
        'codeConfigurationParameters': {
            'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
            'codeLength': 123,
            'validityPeriodMinutes': 123,
            'maxAttempts': 123
        },
        'channelParameters': {
            'text': {
                'inlineTemplateBody': 'string',
                'destinationCountryParameters': {
                    'string': 'string'
                }
            },
            'voice': {
                'inlineTemplateBody': 'string',
                'languageCode': 'string',
                'voiceId': 'string',
                'voiceMessageBodyTextType': 'TEXT'|'SSML'
            },
            'notify': {
                'notifyTemplateId': 'string',
                'voiceId': 'string'
            },
            'whatsApp': {
                'whatsAppTemplateName': 'string',
                'languageCode': 'string'
            }
        },
        'deletionProtectionEnabled': True|False,
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • notifyCodeConfiguration (dict) --

      The notify code configuration resource.

      • notifyCodeConfigurationId (string) --

        The unique identifier of the notify code configuration.

      • notifyCodeConfigurationArn (string) --

        The Amazon Resource Name (ARN) of the notify code configuration.

      • notifyCodeConfigurationName (string) --

        The name of the notify code configuration.

      • codeConfigurationParameters (dict) --

        The passcode policy parameters, including the code type, length, validity period, and maximum number of attempts.

        • codeType (string) --

          The character set used to generate the one-time passcode. Valid values are NUMERIC (digits only), ALPHA (uppercase letters only), and ALPHANUMERIC (uppercase letters and digits). When you do not specify a value, the default is applied when a passcode is sent.

        • codeLength (integer) --

          The number of characters in the one-time passcode. Valid values range from 4 through 8. When you do not specify a value, the default is applied when a passcode is sent.

        • validityPeriodMinutes (integer) --

          The length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. When you do not specify a value, the default is applied when a passcode is sent.

        • maxAttempts (integer) --

          The maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. When you do not specify a value, the default is applied when a passcode is sent.

      • channelParameters (dict) --

        The channel-specific parameters used to render and deliver the one-time passcode. A configuration can carry parameters for every channel at once, and the send route selects the matching channel at send time.

        • text (dict) --

          The parameters for the text channel, which delivers over SMS or RCS.

          • inlineTemplateBody (string) --

            The freeform message template used to render the one-time passcode for the SMS or RCS channels. The template must contain the code placeholder.

          • destinationCountryParameters (dict) --

            A map of country-specific parameters that control one-time passcode delivery.

            • (string) --

              Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

              • (string) --

                Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

        • voice (dict) --

          The parameters for the voice channel.

          • inlineTemplateBody (string) --

            The freeform message template used to render the one-time passcode for the voice channel. The template must contain the code placeholder.

          • languageCode (string) --

            The BCP 47 language code used to render the voice message.

          • voiceId (string) --

            The Amazon Polly voice ID used for the voice channel.

          • voiceMessageBodyTextType (string) --

            The format of the voice message body. Valid values are TEXT and SSML.

        • notify (dict) --

          The parameters for the preapproved notify-template route over the SMS or voice channels.

          • notifyTemplateId (string) --

            The identifier of a preapproved notify template for the SMS or voice channels.

          • voiceId (string) --

            The Amazon Polly voice ID used when the notify template is delivered over the voice channel.

        • whatsApp (dict) --

          The parameters for the WhatsApp channel.

          • whatsAppTemplateName (string) --

            The name of the Meta-approved WhatsApp authentication template.

          • languageCode (string) --

            The BCP 47 language code used to render the template. This value is required for the WhatsApp channel.

      • deletionProtectionEnabled (boolean) --

        Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

      • createdAt (datetime) --

        The time when the resource was created, in Unix epoch time.

      • updatedAt (datetime) --

        The time when the resource was last updated, in Unix epoch time.

ValidateNotifyCodeVerification (new) Link ¶

Validates a one-time passcode that a recipient submitted. Validation succeeds when the passcode matches, the validity period has not elapsed, and the maximum number of attempts has not been exceeded.

See also: AWS API Documentation

Request Syntax

client.validate_notify_code_verification(
    destinationIdentity='string',
    referenceId='string',
    code='string'
)
type destinationIdentity:

string

param destinationIdentity:

[REQUIRED]

The recipient identifier. For the TEXT and VOICE channels, specify an E.164 phone number. For the WhatsApp channel, specify a WhatsApp address.

type referenceId:

string

param referenceId:

The caller-supplied reference identifier used to locate the verification. This value must match the value that you supplied to the SendNotifyCodeVerification operation.

type code:

string

param code:

[REQUIRED]

The one-time passcode that the recipient submitted for validation.

rtype:

dict

returns:

Response Syntax

{
    'status': 'VALID'|'INVALID'
}

Response Structure

  • (dict) --

    • status (string) --

      The outcome of the validation attempt. VALID indicates that the submitted passcode matched an active verification. INVALID indicates that the passcode did not match, expired, or exceeded its attempt limit.

DeleteBrandProfileAttribute (new) Link ¶

Deletes a brand profile attribute. If the attribute stores media, this operation also deletes the associated media.

See also: AWS API Documentation

Request Syntax

client.delete_brand_profile_attribute(
    brandProfileId='string',
    attributeName='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type attributeName:

string

param attributeName:

[REQUIRED]

The name of the brand profile attribute. The name is unique within a brand profile.

rtype:

dict

returns:

Response Syntax

{
    'brandProfileId': 'string',
    'attributeName': 'string'
}

Response Structure

  • (dict) --

    • brandProfileId (string) --

      The unique identifier of the brand profile.

    • attributeName (string) --

      The name of the brand profile attribute. The name is unique within a brand profile.

ListNotifyCodeConfigurations (new) Link ¶

Retrieves a paginated list of the notify code configurations in your account.

See also: AWS API Documentation

Request Syntax

client.list_notify_code_configurations(
    maxResults=123,
    nextToken='string'
)
type maxResults:

integer

param maxResults:

The maximum number of results to return per page.

type nextToken:

string

param nextToken:

The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

rtype:

dict

returns:

Response Syntax

{
    'notifyCodeConfigurations': [
        {
            'notifyCodeConfigurationId': 'string',
            'notifyCodeConfigurationArn': 'string',
            'notifyCodeConfigurationName': 'string',
            'codeConfigurationParameters': {
                'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
                'codeLength': 123,
                'validityPeriodMinutes': 123,
                'maxAttempts': 123
            },
            'channelParameters': {
                'text': {
                    'inlineTemplateBody': 'string',
                    'destinationCountryParameters': {
                        'string': 'string'
                    }
                },
                'voice': {
                    'inlineTemplateBody': 'string',
                    'languageCode': 'string',
                    'voiceId': 'string',
                    'voiceMessageBodyTextType': 'TEXT'|'SSML'
                },
                'notify': {
                    'notifyTemplateId': 'string',
                    'voiceId': 'string'
                },
                'whatsApp': {
                    'whatsAppTemplateName': 'string',
                    'languageCode': 'string'
                }
            },
            'deletionProtectionEnabled': True|False,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • notifyCodeConfigurations (list) --

      The list of notify code configurations.

      • (dict) --

        Contains the settings of a notify code configuration, which is a reusable one-time passcode policy.

        • notifyCodeConfigurationId (string) --

          The unique identifier of the notify code configuration.

        • notifyCodeConfigurationArn (string) --

          The Amazon Resource Name (ARN) of the notify code configuration.

        • notifyCodeConfigurationName (string) --

          The name of the notify code configuration.

        • codeConfigurationParameters (dict) --

          The passcode policy parameters, including the code type, length, validity period, and maximum number of attempts.

          • codeType (string) --

            The character set used to generate the one-time passcode. Valid values are NUMERIC (digits only), ALPHA (uppercase letters only), and ALPHANUMERIC (uppercase letters and digits). When you do not specify a value, the default is applied when a passcode is sent.

          • codeLength (integer) --

            The number of characters in the one-time passcode. Valid values range from 4 through 8. When you do not specify a value, the default is applied when a passcode is sent.

          • validityPeriodMinutes (integer) --

            The length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. When you do not specify a value, the default is applied when a passcode is sent.

          • maxAttempts (integer) --

            The maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. When you do not specify a value, the default is applied when a passcode is sent.

        • channelParameters (dict) --

          The channel-specific parameters used to render and deliver the one-time passcode. A configuration can carry parameters for every channel at once, and the send route selects the matching channel at send time.

          • text (dict) --

            The parameters for the text channel, which delivers over SMS or RCS.

            • inlineTemplateBody (string) --

              The freeform message template used to render the one-time passcode for the SMS or RCS channels. The template must contain the code placeholder.

            • destinationCountryParameters (dict) --

              A map of country-specific parameters that control one-time passcode delivery.

              • (string) --

                Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

                • (string) --

                  Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

          • voice (dict) --

            The parameters for the voice channel.

            • inlineTemplateBody (string) --

              The freeform message template used to render the one-time passcode for the voice channel. The template must contain the code placeholder.

            • languageCode (string) --

              The BCP 47 language code used to render the voice message.

            • voiceId (string) --

              The Amazon Polly voice ID used for the voice channel.

            • voiceMessageBodyTextType (string) --

              The format of the voice message body. Valid values are TEXT and SSML.

          • notify (dict) --

            The parameters for the preapproved notify-template route over the SMS or voice channels.

            • notifyTemplateId (string) --

              The identifier of a preapproved notify template for the SMS or voice channels.

            • voiceId (string) --

              The Amazon Polly voice ID used when the notify template is delivered over the voice channel.

          • whatsApp (dict) --

            The parameters for the WhatsApp channel.

            • whatsAppTemplateName (string) --

              The name of the Meta-approved WhatsApp authentication template.

            • languageCode (string) --

              The BCP 47 language code used to render the template. This value is required for the WhatsApp channel.

        • deletionProtectionEnabled (boolean) --

          Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

        • createdAt (datetime) --

          The time when the resource was created, in Unix epoch time.

        • updatedAt (datetime) --

          The time when the resource was last updated, in Unix epoch time.

    • nextToken (string) --

      The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

CreateBrandProfileAttributes (new) Link ¶

Creates up to 10 attributes for a brand profile in a single request. For attributes of type IMAGE or DOCUMENT, the response includes a presigned Amazon S3 URL that you use to upload the media. This operation is atomic: either all of the attributes are created, or none of them are.

See also: AWS API Documentation

Request Syntax

client.create_brand_profile_attributes(
    brandProfileId='string',
    attributes=[
        {
            'attributeName': 'string',
            'attributeType': 'TEXT'|'IMAGE'|'DOCUMENT',
            'attributeValue': 'string',
            'attachmentBody': b'bytes',
            'description': 'string',
            'category': 'string'
        },
    ],
    clientToken='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type attributes:

list

param attributes:

[REQUIRED]

The brand profile attributes.

  • (dict) --

    Specifies an attribute to create for a brand profile.

    • attributeName (string) -- [REQUIRED]

      The name of the brand profile attribute. The name is unique within a brand profile.

    • attributeType (string) -- [REQUIRED]

      The type of the attribute. TEXT stores an inline value. IMAGE and DOCUMENT store binary media that you upload.

    • attributeValue (string) --

      The text value for the attribute. This value applies to attributes of type TEXT. For attributes of type IMAGE or DOCUMENT, provide the media through the attachment body instead.

    • attachmentBody (bytes) --

      The binary content for an attribute of type IMAGE or DOCUMENT. The content is base64-encoded when it is sent over the wire.

    • description (string) --

      A description of the attribute.

    • category (string) --

      The category of the attribute.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'attributes': [
        {
            'attributeName': 'string',
            'attributeType': 'TEXT'|'IMAGE'|'DOCUMENT',
            'mediaDownloadUrl': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • attributes (list) --

      The brand profile attributes.

      • (dict) --

        Contains information about an attribute that was created for a brand profile.

        • attributeName (string) --

          The name of the brand profile attribute. The name is unique within a brand profile.

        • attributeType (string) --

          The type of the attribute. TEXT stores an inline value. IMAGE and DOCUMENT store binary media that you upload.

        • mediaDownloadUrl (string) --

          A presigned Amazon S3 URL that you can use to download the attribute media. The URL is valid for one hour and is present only for attributes of type IMAGE or DOCUMENT.

GetJob (new) Link ¶

Retrieves the current state of an asynchronous job, including its status and any resources that it created or updated.

See also: AWS API Documentation

Request Syntax

client.get_job(
    jobId='string'
)
type jobId:

string

param jobId:

[REQUIRED]

The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

rtype:

dict

returns:

Response Syntax

{
    'jobId': 'string',
    'status': 'SUCCESS'|'PROCESSING'|'FAILED',
    'operationType': 'string',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'brandProfileId': 'string',
    'errorCode': 'string',
    'errorMessage': 'string',
    'resources': [
        {
            'resourceType': 'REGISTRATION'|'BRAND_PROFILE',
            'resourceId': 'string',
            'resourceArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Information about an async job tracked by the service. GetJob returns the full Job, which may grow detail-only fields that are not part of the JobSummary list view.

    • jobId (string) --

      The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

    • status (string) --

      The current lifecycle status of the job.

    • operationType (string) --

      The type of mutating operation that created the job.

    • createdAt (datetime) --

      The time when the resource was created, in Unix epoch time.

    • updatedAt (datetime) --

      The time when the resource was last updated, in Unix epoch time.

    • brandProfileId (string) --

      The brand profile that the job operates on. This value is absent for operations that create a brand profile.

    • errorCode (string) --

      A machine-readable code that identifies why the job failed. This value is present only when the job status is FAILED.

    • errorMessage (string) --

      A human-readable description of why the job failed. This value is present only when the job status is FAILED.

    • resources (list) --

      The resources that were created or updated by the job.

      • (dict) --

        Contains information about a resource that was created or updated by an asynchronous job.

        • resourceType (string) --

          The type of the resource that the job created or updated.

        • resourceId (string) --

          The identifier of the resource that the job created or updated.

        • resourceArn (string) --

          The Amazon Resource Name (ARN) of the resource.

TagResource (new) Link ¶

Adds or overwrites the tags on a resource.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    resourceArn='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource.

type tags:

list

param tags:

[REQUIRED]

An array of key and value pair tags that are associated with the resource.

  • (dict) --

    Describes a tag as a key and value pair that you can associate with a resource.

    • key (string) -- [REQUIRED]

      The key of the tag.

    • value (string) -- [REQUIRED]

      The value of the tag.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateBrandProfileAttribute (new) Link ¶

Updates the value, description, or category of an existing brand profile attribute.

See also: AWS API Documentation

Request Syntax

client.update_brand_profile_attribute(
    brandProfileId='string',
    attributeName='string',
    attributeValue='string',
    attachmentBody=b'bytes',
    description='string',
    category='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type attributeName:

string

param attributeName:

[REQUIRED]

The name of the brand profile attribute. The name is unique within a brand profile.

type attributeValue:

string

param attributeValue:

The text value of the attribute. This value applies to attributes of type TEXT.

type attachmentBody:

bytes

param attachmentBody:

The binary content for an attribute of type IMAGE or DOCUMENT. The content is base64-encoded when it is sent over the wire.

type description:

string

param description:

A description of the attribute.

type category:

string

param category:

The category of the attribute.

rtype:

dict

returns:

Response Syntax

{
    'attributeName': 'string',
    'attributeType': 'TEXT'|'IMAGE'|'DOCUMENT',
    'attributeValue': 'string',
    'description': 'string',
    'category': 'string',
    'mediaContentType': 'string',
    'mediaSizeBytes': 123,
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • attributeName (string) --

      The name of the brand profile attribute. The name is unique within a brand profile.

    • attributeType (string) --

      The type of the attribute. TEXT stores an inline value. IMAGE and DOCUMENT store binary media that you upload.

    • attributeValue (string) --

      The text value of the attribute. This value applies to attributes of type TEXT.

    • description (string) --

      A description of the attribute.

    • category (string) --

      The category of the attribute.

    • mediaContentType (string) --

      The MIME content type of the attribute media.

    • mediaSizeBytes (integer) --

      The size of the attribute media, in bytes.

    • createdAt (datetime) --

      The time when the resource was created, in Unix epoch time.

    • updatedAt (datetime) --

      The time when the resource was last updated, in Unix epoch time.

CreateBrandProfileFromRegistration (new) Link ¶

Creates a brand profile and populates its attributes from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.

See also: AWS API Documentation

Request Syntax

client.create_brand_profile_from_registration(
    registrationId='string',
    brandProfileName='string',
    smartMatch=True|False,
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    clientToken='string'
)
type registrationId:

string

param registrationId:

[REQUIRED]

The identifier or Amazon Resource Name (ARN) of the registration to populate the brand profile from.

type brandProfileName:

string

param brandProfileName:

[REQUIRED]

The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

type smartMatch:

boolean

param smartMatch:

Specifies whether to use semantic field mapping between brand profile attributes and registration fields. The default is true. When false, the service maps fields using a fixed set of standard field types.

type tags:

list

param tags:

An array of key and value pair tags that are associated with the resource.

  • (dict) --

    Describes a tag as a key and value pair that you can associate with a resource.

    • key (string) -- [REQUIRED]

      The key of the tag.

    • value (string) -- [REQUIRED]

      The value of the tag.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'results': [
        {
            'jobId': 'string',
            'resourceIdentifier': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • results (list) --

      The results of the operation. Each result pairs a requested item with the asynchronous job that processes it.

      • (dict) --

        Pairs an asynchronous job with the resource identifier from your request that the job processes.

        • jobId (string) --

          The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

        • resourceIdentifier (string) --

          The identifier from your request that this job is processing.

GetNotifyCodeConfiguration (new) Link ¶

Retrieves a notify code configuration.

See also: AWS API Documentation

Request Syntax

client.get_notify_code_configuration(
    notifyCodeConfigurationId='string'
)
type notifyCodeConfigurationId:

string

param notifyCodeConfigurationId:

[REQUIRED]

The unique identifier of the notify code configuration. You can specify either the bare ID or the full Amazon Resource Name (ARN).

rtype:

dict

returns:

Response Syntax

{
    'notifyCodeConfiguration': {
        'notifyCodeConfigurationId': 'string',
        'notifyCodeConfigurationArn': 'string',
        'notifyCodeConfigurationName': 'string',
        'codeConfigurationParameters': {
            'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
            'codeLength': 123,
            'validityPeriodMinutes': 123,
            'maxAttempts': 123
        },
        'channelParameters': {
            'text': {
                'inlineTemplateBody': 'string',
                'destinationCountryParameters': {
                    'string': 'string'
                }
            },
            'voice': {
                'inlineTemplateBody': 'string',
                'languageCode': 'string',
                'voiceId': 'string',
                'voiceMessageBodyTextType': 'TEXT'|'SSML'
            },
            'notify': {
                'notifyTemplateId': 'string',
                'voiceId': 'string'
            },
            'whatsApp': {
                'whatsAppTemplateName': 'string',
                'languageCode': 'string'
            }
        },
        'deletionProtectionEnabled': True|False,
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • notifyCodeConfiguration (dict) --

      The notify code configuration resource.

      • notifyCodeConfigurationId (string) --

        The unique identifier of the notify code configuration.

      • notifyCodeConfigurationArn (string) --

        The Amazon Resource Name (ARN) of the notify code configuration.

      • notifyCodeConfigurationName (string) --

        The name of the notify code configuration.

      • codeConfigurationParameters (dict) --

        The passcode policy parameters, including the code type, length, validity period, and maximum number of attempts.

        • codeType (string) --

          The character set used to generate the one-time passcode. Valid values are NUMERIC (digits only), ALPHA (uppercase letters only), and ALPHANUMERIC (uppercase letters and digits). When you do not specify a value, the default is applied when a passcode is sent.

        • codeLength (integer) --

          The number of characters in the one-time passcode. Valid values range from 4 through 8. When you do not specify a value, the default is applied when a passcode is sent.

        • validityPeriodMinutes (integer) --

          The length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. When you do not specify a value, the default is applied when a passcode is sent.

        • maxAttempts (integer) --

          The maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. When you do not specify a value, the default is applied when a passcode is sent.

      • channelParameters (dict) --

        The channel-specific parameters used to render and deliver the one-time passcode. A configuration can carry parameters for every channel at once, and the send route selects the matching channel at send time.

        • text (dict) --

          The parameters for the text channel, which delivers over SMS or RCS.

          • inlineTemplateBody (string) --

            The freeform message template used to render the one-time passcode for the SMS or RCS channels. The template must contain the code placeholder.

          • destinationCountryParameters (dict) --

            A map of country-specific parameters that control one-time passcode delivery.

            • (string) --

              Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

              • (string) --

                Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

        • voice (dict) --

          The parameters for the voice channel.

          • inlineTemplateBody (string) --

            The freeform message template used to render the one-time passcode for the voice channel. The template must contain the code placeholder.

          • languageCode (string) --

            The BCP 47 language code used to render the voice message.

          • voiceId (string) --

            The Amazon Polly voice ID used for the voice channel.

          • voiceMessageBodyTextType (string) --

            The format of the voice message body. Valid values are TEXT and SSML.

        • notify (dict) --

          The parameters for the preapproved notify-template route over the SMS or voice channels.

          • notifyTemplateId (string) --

            The identifier of a preapproved notify template for the SMS or voice channels.

          • voiceId (string) --

            The Amazon Polly voice ID used when the notify template is delivered over the voice channel.

        • whatsApp (dict) --

          The parameters for the WhatsApp channel.

          • whatsAppTemplateName (string) --

            The name of the Meta-approved WhatsApp authentication template.

          • languageCode (string) --

            The BCP 47 language code used to render the template. This value is required for the WhatsApp channel.

      • deletionProtectionEnabled (boolean) --

        Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

      • createdAt (datetime) --

        The time when the resource was created, in Unix epoch time.

      • updatedAt (datetime) --

        The time when the resource was last updated, in Unix epoch time.

CreateNotifyCodeConfiguration (new) Link ¶

Creates a notify code configuration. A notify code configuration is a reusable policy that defines how one-time passcodes are generated and rendered, including the code type, length, validity period, maximum number of attempts, and channel templates.

See also: AWS API Documentation

Request Syntax

client.create_notify_code_configuration(
    notifyCodeConfigurationName='string',
    codeConfigurationParameters={
        'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
        'codeLength': 123,
        'validityPeriodMinutes': 123,
        'maxAttempts': 123
    },
    channelParameters={
        'text': {
            'inlineTemplateBody': 'string',
            'destinationCountryParameters': {
                'string': 'string'
            }
        },
        'voice': {
            'inlineTemplateBody': 'string',
            'languageCode': 'string',
            'voiceId': 'string',
            'voiceMessageBodyTextType': 'TEXT'|'SSML'
        },
        'notify': {
            'notifyTemplateId': 'string',
            'voiceId': 'string'
        },
        'whatsApp': {
            'whatsAppTemplateName': 'string',
            'languageCode': 'string'
        }
    },
    deletionProtectionEnabled=True|False,
    clientToken='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type notifyCodeConfigurationName:

string

param notifyCodeConfigurationName:

[REQUIRED]

The name of the notify code configuration.

type codeConfigurationParameters:

dict

param codeConfigurationParameters:

The passcode policy parameters, including the code type, length, validity period, and maximum number of attempts. Each member is optional. When you omit a member, no value is applied at create time and the default is applied when a passcode is sent.

  • codeType (string) --

    The character set used to generate the one-time passcode. Valid values are NUMERIC (digits only), ALPHA (uppercase letters only), and ALPHANUMERIC (uppercase letters and digits). When you do not specify a value, the default is applied when a passcode is sent.

  • codeLength (integer) --

    The number of characters in the one-time passcode. Valid values range from 4 through 8. When you do not specify a value, the default is applied when a passcode is sent.

  • validityPeriodMinutes (integer) --

    The length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. When you do not specify a value, the default is applied when a passcode is sent.

  • maxAttempts (integer) --

    The maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. When you do not specify a value, the default is applied when a passcode is sent.

type channelParameters:

dict

param channelParameters:

The channel-specific parameters used to render and deliver the one-time passcode. Provide parameters for any subset of channels. Each member configures one delivery route, and the route that is selected at send time uses the matching channel.

  • text (dict) --

    The parameters for the text channel, which delivers over SMS or RCS.

    • inlineTemplateBody (string) --

      The freeform message template used to render the one-time passcode for the SMS or RCS channels. The template must contain the code placeholder.

    • destinationCountryParameters (dict) --

      A map of country-specific parameters that control one-time passcode delivery.

      • (string) --

        Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

        • (string) --

          Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

  • voice (dict) --

    The parameters for the voice channel.

    • inlineTemplateBody (string) --

      The freeform message template used to render the one-time passcode for the voice channel. The template must contain the code placeholder.

    • languageCode (string) --

      The BCP 47 language code used to render the voice message.

    • voiceId (string) --

      The Amazon Polly voice ID used for the voice channel.

    • voiceMessageBodyTextType (string) --

      The format of the voice message body. Valid values are TEXT and SSML.

  • notify (dict) --

    The parameters for the preapproved notify-template route over the SMS or voice channels.

    • notifyTemplateId (string) --

      The identifier of a preapproved notify template for the SMS or voice channels.

    • voiceId (string) --

      The Amazon Polly voice ID used when the notify template is delivered over the voice channel.

  • whatsApp (dict) --

    The parameters for the WhatsApp channel.

    • whatsAppTemplateName (string) --

      The name of the Meta-approved WhatsApp authentication template.

    • languageCode (string) --

      The BCP 47 language code used to render the template. This value is required for the WhatsApp channel.

type deletionProtectionEnabled:

boolean

param deletionProtectionEnabled:

Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

type tags:

list

param tags:

An array of key and value pair tags that are associated with the resource.

  • (dict) --

    Describes a tag as a key and value pair that you can associate with a resource.

    • key (string) -- [REQUIRED]

      The key of the tag.

    • value (string) -- [REQUIRED]

      The value of the tag.

rtype:

dict

returns:

Response Syntax

{
    'notifyCodeConfiguration': {
        'notifyCodeConfigurationId': 'string',
        'notifyCodeConfigurationArn': 'string',
        'notifyCodeConfigurationName': 'string',
        'codeConfigurationParameters': {
            'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
            'codeLength': 123,
            'validityPeriodMinutes': 123,
            'maxAttempts': 123
        },
        'channelParameters': {
            'text': {
                'inlineTemplateBody': 'string',
                'destinationCountryParameters': {
                    'string': 'string'
                }
            },
            'voice': {
                'inlineTemplateBody': 'string',
                'languageCode': 'string',
                'voiceId': 'string',
                'voiceMessageBodyTextType': 'TEXT'|'SSML'
            },
            'notify': {
                'notifyTemplateId': 'string',
                'voiceId': 'string'
            },
            'whatsApp': {
                'whatsAppTemplateName': 'string',
                'languageCode': 'string'
            }
        },
        'deletionProtectionEnabled': True|False,
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • notifyCodeConfiguration (dict) --

      The notify code configuration resource.

      • notifyCodeConfigurationId (string) --

        The unique identifier of the notify code configuration.

      • notifyCodeConfigurationArn (string) --

        The Amazon Resource Name (ARN) of the notify code configuration.

      • notifyCodeConfigurationName (string) --

        The name of the notify code configuration.

      • codeConfigurationParameters (dict) --

        The passcode policy parameters, including the code type, length, validity period, and maximum number of attempts.

        • codeType (string) --

          The character set used to generate the one-time passcode. Valid values are NUMERIC (digits only), ALPHA (uppercase letters only), and ALPHANUMERIC (uppercase letters and digits). When you do not specify a value, the default is applied when a passcode is sent.

        • codeLength (integer) --

          The number of characters in the one-time passcode. Valid values range from 4 through 8. When you do not specify a value, the default is applied when a passcode is sent.

        • validityPeriodMinutes (integer) --

          The length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. When you do not specify a value, the default is applied when a passcode is sent.

        • maxAttempts (integer) --

          The maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. When you do not specify a value, the default is applied when a passcode is sent.

      • channelParameters (dict) --

        The channel-specific parameters used to render and deliver the one-time passcode. A configuration can carry parameters for every channel at once, and the send route selects the matching channel at send time.

        • text (dict) --

          The parameters for the text channel, which delivers over SMS or RCS.

          • inlineTemplateBody (string) --

            The freeform message template used to render the one-time passcode for the SMS or RCS channels. The template must contain the code placeholder.

          • destinationCountryParameters (dict) --

            A map of country-specific parameters that control one-time passcode delivery.

            • (string) --

              Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

              • (string) --

                Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

        • voice (dict) --

          The parameters for the voice channel.

          • inlineTemplateBody (string) --

            The freeform message template used to render the one-time passcode for the voice channel. The template must contain the code placeholder.

          • languageCode (string) --

            The BCP 47 language code used to render the voice message.

          • voiceId (string) --

            The Amazon Polly voice ID used for the voice channel.

          • voiceMessageBodyTextType (string) --

            The format of the voice message body. Valid values are TEXT and SSML.

        • notify (dict) --

          The parameters for the preapproved notify-template route over the SMS or voice channels.

          • notifyTemplateId (string) --

            The identifier of a preapproved notify template for the SMS or voice channels.

          • voiceId (string) --

            The Amazon Polly voice ID used when the notify template is delivered over the voice channel.

        • whatsApp (dict) --

          The parameters for the WhatsApp channel.

          • whatsAppTemplateName (string) --

            The name of the Meta-approved WhatsApp authentication template.

          • languageCode (string) --

            The BCP 47 language code used to render the template. This value is required for the WhatsApp channel.

      • deletionProtectionEnabled (boolean) --

        Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

      • createdAt (datetime) --

        The time when the resource was created, in Unix epoch time.

      • updatedAt (datetime) --

        The time when the resource was last updated, in Unix epoch time.

GetBrandProfile (new) Link ¶

Retrieves the metadata for a brand profile, including its name, status, deletion protection setting, and timestamps. To retrieve the attributes of the profile, use the ListBrandProfileAttributes operation.

See also: AWS API Documentation

Request Syntax

client.get_brand_profile(
    brandProfileId='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

rtype:

dict

returns:

Response Syntax

{
    'brandProfileId': 'string',
    'brandProfileArn': 'string',
    'brandProfileName': 'string',
    'status': 'ACTIVE'|'BLOCKED'|'PAUSED'|'CANCELLED'|'FAILED',
    'deletionProtectionEnabled': True|False,
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • brandProfileId (string) --

      The unique identifier of the brand profile.

    • brandProfileArn (string) --

      The Amazon Resource Name (ARN) of the brand profile.

    • brandProfileName (string) --

      The name of the brand profile. The name can contain alphanumeric characters, underscores, hyphens, and spaces.

    • status (string) --

      The current lifecycle status of the brand profile.

    • deletionProtectionEnabled (boolean) --

      Specifies whether deletion protection is enabled. When enabled, the resource cannot be deleted until deletion protection is turned off.

    • createdAt (datetime) --

      The time when the resource was created, in Unix epoch time.

    • updatedAt (datetime) --

      The time when the resource was last updated, in Unix epoch time.

DeleteNotifyCodeConfiguration (new) Link ¶

Deletes a notify code configuration. Verifications that are already in progress are not affected, because they capture the policy at the time that the passcode was sent.

See also: AWS API Documentation

Request Syntax

client.delete_notify_code_configuration(
    notifyCodeConfigurationId='string'
)
type notifyCodeConfigurationId:

string

param notifyCodeConfigurationId:

[REQUIRED]

The unique identifier of the notify code configuration. You can specify either the bare ID or the full Amazon Resource Name (ARN).

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteBrandProfile (new) Link ¶

Deletes a brand profile. This operation also deletes the attributes of the profile and any associated media. The request fails if deletion protection is enabled for the profile.

See also: AWS API Documentation

Request Syntax

client.delete_brand_profile(
    brandProfileId='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

rtype:

dict

returns:

Response Syntax

{
    'brandProfileId': 'string',
    'brandProfileArn': 'string'
}

Response Structure

  • (dict) --

    • brandProfileId (string) --

      The unique identifier of the brand profile.

    • brandProfileArn (string) --

      The Amazon Resource Name (ARN) of the brand profile.

UpdateRegistrationsFromBrandProfile (new) Link ¶

Repushes the attributes of a brand profile into existing DRAFT registrations. This operation runs asynchronously. Use the GetJob operation to track its progress.

See also: AWS API Documentation

Request Syntax

client.update_registrations_from_brand_profile(
    brandProfileId='string',
    registrationIds=[
        'string',
    ],
    smartMatch=True|False,
    onAttributeConflict='REPLACE'|'PRESERVE',
    clientToken='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type registrationIds:

list

param registrationIds:

[REQUIRED]

The identifiers of the registrations.

  • (string) --

    Registration identifier or ARN.

type smartMatch:

boolean

param smartMatch:

Specifies whether to use semantic field mapping between brand profile attributes and registration fields. The default is true. When false, the service maps fields using a fixed set of standard field types.

type onAttributeConflict:

string

param onAttributeConflict:

Specifies how the service resolves an attribute that already exists. REPLACE overwrites the existing value with the incoming value. PRESERVE keeps the existing value.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'results': [
        {
            'jobId': 'string',
            'resourceIdentifier': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • results (list) --

      The results of the operation. Each result pairs a requested item with the asynchronous job that processes it.

      • (dict) --

        Pairs an asynchronous job with the resource identifier from your request that the job processes.

        • jobId (string) --

          The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

        • resourceIdentifier (string) --

          The identifier from your request that this job is processing.

ListRegistrationsFromBrandProfile (new) Link ¶

Retrieves a paginated list of the registrations that were created from a brand profile through the synchronization operations.

See also: AWS API Documentation

Request Syntax

client.list_registrations_from_brand_profile(
    brandProfileId='string',
    maxResults=123,
    nextToken='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type maxResults:

integer

param maxResults:

The maximum number of results to return per page.

type nextToken:

string

param nextToken:

The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

rtype:

dict

returns:

Response Syntax

{
    'registrationAssociations': [
        {
            'registrationId': 'string',
            'registrationType': 'string',
            'createdAt': datetime(2015, 1, 1),
            'smartMatchUsed': True|False
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • registrationAssociations (list) --

      The list of registrations that are associated with the brand profile.

      • (dict) --

        Contains summary information about a registration that is associated with a brand profile.

        • registrationId (string) --

          The identifier of the registration.

        • registrationType (string) --

          The type of the registration, for example US_TOLL_FREE_REGISTRATION or SENDER_ID.

        • createdAt (datetime) --

          The time when the resource was created, in Unix epoch time.

        • smartMatchUsed (boolean) --

          Specifies whether smart matching was used to create the association.

    • nextToken (string) --

      The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

CreateRegistrationsFromBrandProfile (new) Link ¶

Creates one or more registrations in the DRAFT state and prefills their fields from the attributes of a brand profile. This operation runs asynchronously. Use the GetJob operation to track its progress.

See also: AWS API Documentation

Request Syntax

client.create_registrations_from_brand_profile(
    brandProfileId='string',
    registrationTypes=[
        'string',
    ],
    smartMatch=True|False,
    clientToken='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type registrationTypes:

list

param registrationTypes:

[REQUIRED]

The registration types to create, for example US_TOLL_FREE_REGISTRATION or SENDER_ID.

  • (string) --

    Registration type identifier (e.g., US_TOLL_FREE_REGISTRATION, SENDER_ID).

type smartMatch:

boolean

param smartMatch:

Specifies whether to use semantic field mapping between brand profile attributes and registration fields. The default is true. When false, the service maps fields using a fixed set of standard field types.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'results': [
        {
            'jobId': 'string',
            'resourceIdentifier': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • results (list) --

      The results of the operation. Each result pairs a requested item with the asynchronous job that processes it.

      • (dict) --

        Pairs an asynchronous job with the resource identifier from your request that the job processes.

        • jobId (string) --

          The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

        • resourceIdentifier (string) --

          The identifier from your request that this job is processing.

SendNotifyCodeVerification (new) Link ¶

Generates a one-time passcode and delivers it to a recipient over the requested channel. The passcode policy is captured from the referenced notify code configuration at the time of the request, so later updates to the configuration do not affect verifications that are already in progress.

See also: AWS API Documentation

Request Syntax

client.send_notify_code_verification(
    channel='TEXT'|'VOICE'|'WHATSAPP',
    destinationIdentity='string',
    originationIdentity='string',
    notifyCodeConfiguration='string',
    overrideChannelParameters={
        'text': {
            'inlineTemplateBody': 'string',
            'destinationCountryParameters': {
                'string': 'string'
            }
        },
        'voice': {
            'inlineTemplateBody': 'string',
            'languageCode': 'string',
            'voiceId': 'string',
            'voiceMessageBodyTextType': 'TEXT'|'SSML'
        },
        'notify': {
            'notifyTemplateId': 'string',
            'voiceId': 'string'
        },
        'whatsApp': {
            'whatsAppTemplateName': 'string',
            'languageCode': 'string'
        }
    },
    overrideCodeConfigurationParameters={
        'codeType': 'NUMERIC'|'ALPHA'|'ALPHANUMERIC',
        'codeLength': 123,
        'validityPeriodMinutes': 123,
        'maxAttempts': 123
    },
    configurationSetName='string',
    context={
        'string': 'string'
    },
    referenceId='string'
)
type channel:

string

param channel:

[REQUIRED]

The channel used to deliver the one-time passcode to the recipient.

type destinationIdentity:

string

param destinationIdentity:

[REQUIRED]

The recipient identifier. For the TEXT and VOICE channels, specify an E.164 phone number. For the WhatsApp channel, specify a WhatsApp address.

type originationIdentity:

string

param originationIdentity:

[REQUIRED]

The identity used to send the message, such as a phone number, sender ID, or pool that is owned by your account.

type notifyCodeConfiguration:

string

param notifyCodeConfiguration:

The identifier or Amazon Resource Name (ARN) of the notify code configuration that supplies the passcode policy and template defaults. When you do not specify a configuration, you must supply the template in the request.

type overrideChannelParameters:

dict

param overrideChannelParameters:

The channel-specific parameters used to render and deliver the one-time passcode for this request. The route that is derived from the channel and the origination identity selects the matching channel. When you do not specify channel parameters, the service uses the parameters from the referenced notify code configuration.

  • text (dict) --

    The parameters for the text channel, which delivers over SMS or RCS.

    • inlineTemplateBody (string) --

      The freeform message template used to render the one-time passcode for the SMS or RCS channels. The template must contain the code placeholder.

    • destinationCountryParameters (dict) --

      A map of country-specific parameters that control one-time passcode delivery.

      • (string) --

        Key of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

        • (string) --

          Value of a DestinationCountryParameters map entry. Up to 64 non-whitespace characters.

  • voice (dict) --

    The parameters for the voice channel.

    • inlineTemplateBody (string) --

      The freeform message template used to render the one-time passcode for the voice channel. The template must contain the code placeholder.

    • languageCode (string) --

      The BCP 47 language code used to render the voice message.

    • voiceId (string) --

      The Amazon Polly voice ID used for the voice channel.

    • voiceMessageBodyTextType (string) --

      The format of the voice message body. Valid values are TEXT and SSML.

  • notify (dict) --

    The parameters for the preapproved notify-template route over the SMS or voice channels.

    • notifyTemplateId (string) --

      The identifier of a preapproved notify template for the SMS or voice channels.

    • voiceId (string) --

      The Amazon Polly voice ID used when the notify template is delivered over the voice channel.

  • whatsApp (dict) --

    The parameters for the WhatsApp channel.

    • whatsAppTemplateName (string) --

      The name of the Meta-approved WhatsApp authentication template.

    • languageCode (string) --

      The BCP 47 language code used to render the template. This value is required for the WhatsApp channel.

type overrideCodeConfigurationParameters:

dict

param overrideCodeConfigurationParameters:

The per-send overrides for the passcode policy parameters, including the code type, length, validity period, and maximum number of attempts. These values override the values from the referenced notify code configuration. When you do not specify a value, the value from the configuration is used, and if neither is set, the service default applies.

  • codeType (string) --

    The character set used to generate the one-time passcode. Valid values are NUMERIC (digits only), ALPHA (uppercase letters only), and ALPHANUMERIC (uppercase letters and digits). When you do not specify a value, the default is applied when a passcode is sent.

  • codeLength (integer) --

    The number of characters in the one-time passcode. Valid values range from 4 through 8. When you do not specify a value, the default is applied when a passcode is sent.

  • validityPeriodMinutes (integer) --

    The length of time, in minutes, that the one-time passcode remains valid. Valid values range from 1 through 60. When you do not specify a value, the default is applied when a passcode is sent.

  • maxAttempts (integer) --

    The maximum number of validation attempts that are allowed before the verification is locked. Valid values range from 1 through 5. When you do not specify a value, the default is applied when a passcode is sent.

type configurationSetName:

string

param configurationSetName:

The name of the configuration set used to control how delivery events for the message are handled.

type context:

dict

param context:

A map of custom key and value pairs that are propagated to the delivery events for this verification.

  • (string) --

    Caller-supplied context propagated to delivery events for this verification.

    • (string) --

      Caller-supplied context value. Blank space is not allowed at the front or end.

type referenceId:

string

param referenceId:

A caller-supplied reference identifier that binds a send request to a later validate request. Specify the same value in both requests.

rtype:

dict

returns:

Response Syntax

{
    'verificationId': 'string',
    'messageId': 'string'
}

Response Structure

  • (dict) --

    • verificationId (string) --

      The service-generated identifier for the verification.

    • messageId (string) --

      The service-generated identifier for the message that delivers the one-time passcode.

UpdateBrandProfileFromRegistration (new) Link ¶

Imports or refreshes the attributes of an existing brand profile from an existing registration. This operation runs asynchronously. Use the GetJob operation to track its progress.

See also: AWS API Documentation

Request Syntax

client.update_brand_profile_from_registration(
    brandProfileId='string',
    registrationId='string',
    smartMatch=True|False,
    onAttributeConflict='REPLACE'|'PRESERVE',
    clientToken='string'
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type registrationId:

string

param registrationId:

[REQUIRED]

The identifier or Amazon Resource Name (ARN) of the registration to import attributes from.

type smartMatch:

boolean

param smartMatch:

Specifies whether to use semantic field mapping between brand profile attributes and registration fields. The default is true. When false, the service maps fields using a fixed set of standard field types.

type onAttributeConflict:

string

param onAttributeConflict:

Specifies how the service resolves an attribute that already exists. REPLACE overwrites the existing value with the incoming value. PRESERVE keeps the existing value.

type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, the AWS SDK automatically generates one.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'results': [
        {
            'jobId': 'string',
            'resourceIdentifier': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • results (list) --

      The results of the operation. Each result pairs a requested item with the asynchronous job that processes it.

      • (dict) --

        Pairs an asynchronous job with the resource identifier from your request that the job processes.

        • jobId (string) --

          The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

        • resourceIdentifier (string) --

          The identifier from your request that this job is processing.

UntagResource (new) Link ¶

Removes the specified tags from a resource.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource.

type tagKeys:

list

param tagKeys:

[REQUIRED]

The list of tag keys to remove from the resource.

  • (string) --

    The key of the tag. Tag keys are case-sensitive and must be unique per resource.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

ListBrandProfileAttributes (new) Link ¶

Retrieves a paginated list of the attributes for a brand profile.

See also: AWS API Documentation

Request Syntax

client.list_brand_profile_attributes(
    brandProfileId='string',
    nextToken='string',
    maxResults=123
)
type brandProfileId:

string

param brandProfileId:

[REQUIRED]

The unique identifier of the brand profile. You can specify either the bare ID or the full Amazon Resource Name (ARN).

type nextToken:

string

param nextToken:

The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.

type maxResults:

integer

param maxResults:

The maximum number of results to return per page.

rtype:

dict

returns:

Response Syntax

{
    'brandProfileAttributes': [
        {
            'attributeName': 'string',
            'attributeType': 'TEXT'|'IMAGE'|'DOCUMENT',
            'description': 'string',
            'category': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • brandProfileAttributes (list) --

      The list of brand profile attributes.

      • (dict) --

        Contains summary information about a brand profile attribute in a list response.

        • attributeName (string) --

          The name of the brand profile attribute. The name is unique within a brand profile.

        • attributeType (string) --

          The type of the attribute. TEXT stores an inline value. IMAGE and DOCUMENT store binary media that you upload.

        • description (string) --

          A description of the attribute.

        • category (string) --

          The category of the attribute.

        • createdAt (datetime) --

          The time when the resource was created, in Unix epoch time.

        • updatedAt (datetime) --

          The time when the resource was last updated, in Unix epoch time.

    • nextToken (string) --

      The token to retrieve the next page of results. This value is returned when more results are available, and is null when there are no more results to return.