Skip to main content

verified_destination_numbers

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

Overview

Nameverified_destination_numbers
TypeResource
Idaws.pinpoint_sms_voice_v2.verified_destination_numbers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestampstring (date-time)The time when the destination phone number was created, in UNIX epoch time format.
destination_phone_numberstringThe verified destination phone number, in E.164 format. (pattern: <code>+?[1-9][0-9]{1,18}</code>)
rcs_agent_idstringThe unique identifier of the RCS agent associated with the verified destination number.
statusstringThe status of the verified destination phone number. PENDING: The phone number hasn't been verified yet. VERIFIED: The phone number is verified and can receive messages. (PENDING, VERIFIED, UNSUPPORTED)
verified_destination_number_arnstringThe Amazon Resource Name (ARN) for the verified destination phone number.
verified_destination_number_idstringThe unique identifier for the verified destination phone number.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_verified_destination_numbersselectregionRetrieves the specified verified destination numbers.
create_verified_destination_numberinsertregion, DestinationPhoneNumberYou can only send messages to verified destination numbers when your account is in the sandbox. You can add up to 10 verified destination numbers.
delete_verified_destination_numberdeleteregionDelete a verified destination phone number.
send_destination_number_verification_codeexecregion, VerifiedDestinationNumberId, VerificationChannelBefore you can send test messages to a verified destination phone number you need to opt-in the verified destination phone number. Creates a new text message with a verification code and send it to a verified destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the verified destination phone number to receive messages.
verify_destination_numberexecregion, VerifiedDestinationNumberId, VerificationCodeUse the verification code that was received by the verified destination phone number to opt-in the verified destination phone number to receive more messages.

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

Retrieves the specified verified destination numbers.

SELECT
created_timestamp,
destination_phone_number,
rcs_agent_id,
status,
verified_destination_number_arn,
verified_destination_number_id
FROM aws.pinpoint_sms_voice_v2.verified_destination_numbers
WHERE region = '{{ region }}' -- required
;

INSERT examples

You can only send messages to verified destination numbers when your account is in the sandbox. You can add up to 10 verified destination numbers.

INSERT INTO aws.pinpoint_sms_voice_v2.verified_destination_numbers (
DestinationPhoneNumber,
RcsAgentId,
Tags,
ClientToken,
region
)
SELECT
'{{ DestinationPhoneNumber }}' /* required */,
'{{ RcsAgentId }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
created_timestamp,
destination_phone_number,
rcs_agent_id,
status,
tags,
verified_destination_number_arn,
verified_destination_number_id
;

DELETE examples

Delete a verified destination phone number.

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

Lifecycle Methods

Before you can send test messages to a verified destination phone number you need to opt-in the verified destination phone number. Creates a new text message with a verification code and send it to a verified destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the verified destination phone number to receive messages.

EXEC aws.pinpoint_sms_voice_v2.verified_destination_numbers.send_destination_number_verification_code
@region='{{ region }}' --required
@@json=
'{
"VerifiedDestinationNumberId": "{{ VerifiedDestinationNumberId }}",
"VerificationChannel": "{{ VerificationChannel }}",
"LanguageCode": "{{ LanguageCode }}",
"OriginationIdentity": "{{ OriginationIdentity }}",
"ConfigurationSetName": "{{ ConfigurationSetName }}",
"Context": "{{ Context }}",
"DestinationCountryParameters": "{{ DestinationCountryParameters }}"
}'
;