Skip to main content

sender_ids

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

Overview

Namesender_ids
TypeResource
Idaws.pinpoint_sms_voice_v2.sender_ids

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
deletion_protection_enabledbooleanBy default this is set to false. When set to true the sender ID can't be deleted.
iso_country_codestringThe two-character code, in ISO 3166-1 alpha-2 format, for the country or region. (pattern: <code>[A-Z]{2}</code>)
message_typesarrayThe type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
monthly_leasing_pricestringThe monthly leasing price, in US dollars.
registeredbooleanTrue if the sender ID is registered.
registration_idstringThe unique identifier for the registration.
sender_idstringThe alphanumeric sender ID in a specific country that you'd like to describe. (pattern: <code>[A-Za-z0-9_-]+</code>)
sender_id_arnstringThe Amazon Resource Name (ARN) associated with the SenderId.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_sender_idsselectregionDescribes the specified SenderIds or all SenderIds associated with your Amazon Web Services account. If you specify SenderIds, the output includes information for only the specified SenderIds. If you specify filters, the output includes information for only those SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the output includes information for all SenderIds. f you specify a sender ID that isn't valid, an error is returned.
release_sender_idupdateregion, SenderId, IsoCountryCodeReleases an existing sender ID in your account.
set_default_sender_idupdateregion, ConfigurationSetName, SenderIdSets default sender ID on a configuration set. When sending a text message to a destination country that supports sender IDs, the default sender ID on the configuration set specified will be used if no dedicated origination phone numbers or registered sender IDs are available in your account.
delete_default_sender_iddeleteregionDeletes an existing default sender ID on a configuration set. A default sender ID is the identity that appears on recipients' devices when they receive SMS messages. Support for sender ID capabilities varies by country or region.
update_sender_idexecregion, SenderId, IsoCountryCodeUpdates the configuration of an existing sender ID.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account. If you specify SenderIds, the output includes information for only the specified SenderIds. If you specify filters, the output includes information for only those SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the output includes information for all SenderIds. f you specify a sender ID that isn't valid, an error is returned.

SELECT
deletion_protection_enabled,
iso_country_code,
message_types,
monthly_leasing_price,
registered,
registration_id,
sender_id,
sender_id_arn
FROM aws.pinpoint_sms_voice_v2.sender_ids
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Releases an existing sender ID in your account.

UPDATE aws.pinpoint_sms_voice_v2.sender_ids
SET
SenderId = '{{ SenderId }}',
IsoCountryCode = '{{ IsoCountryCode }}'
WHERE
region = '{{ region }}' --required
AND SenderId = '{{ SenderId }}' --required
AND IsoCountryCode = '{{ IsoCountryCode }}' --required
RETURNING
iso_country_code,
message_types,
monthly_leasing_price,
registered,
registration_id,
sender_id,
sender_id_arn;

DELETE examples

Deletes an existing default sender ID on a configuration set. A default sender ID is the identity that appears on recipients' devices when they receive SMS messages. Support for sender ID capabilities varies by country or region.

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

Lifecycle Methods

Updates the configuration of an existing sender ID.

EXEC aws.pinpoint_sms_voice_v2.sender_ids.update_sender_id
@region='{{ region }}' --required
@@json=
'{
"SenderId": "{{ SenderId }}",
"IsoCountryCode": "{{ IsoCountryCode }}",
"DeletionProtectionEnabled": {{ DeletionProtectionEnabled }}
}'
;