Skip to main content

registrations

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

Overview

Nameregistrations
TypeResource
Idaws.pinpoint_sms_voice_v2.registrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
additional_attributesobjectMetadata about a given registration which is specific to that registration type.
approved_version_numberinteger (int64)The version number of the registration that was approved.
created_timestampstring (date-time)The time when the registration was created, in UNIX epoch time format.
current_version_numberinteger (int64)The current version number of the registration.
latest_denied_version_numberinteger (int64)The latest version number of the registration that was denied.
registration_arnstringThe Amazon Resource Name (ARN) for the registration.
registration_idstringThe unique identifier for the registration.
registration_statusstringThe status of the registration. CLOSED: The phone number or sender ID has been deleted and you must also delete the registration for the number. CREATED: Your registration is created but not submitted. COMPLETE: Your registration has been approved and your origination identity has been created. DELETED: The registration has been deleted. PROVISIONING: Your registration has been approved and your origination identity is being created. REQUIRES_AUTHENTICATION: You need to complete email authentication. REQUIRES_UPDATES: You must fix your registration and resubmit it. REVIEWING: Your registration has been accepted and is being reviewed. SUBMITTED: Your registration has been submitted and is awaiting review. (CREATED, SUBMITTED, AWS_REVIEWING, REVIEWING, REQUIRES_AUTHENTICATION, PROVISIONING, COMPLETE, REQUIRES_UPDATES, CLOSED, DELETED)
registration_typestringThe type of registration form. The list of RegistrationTypes can be found using the DescribeRegistrationTypeDefinitions action. (pattern: <code>[A-Za-z0-9_]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_registrationsselectregionRetrieves the specified registrations.
create_registrationinsertregion, RegistrationTypeCreates a new registration based on the RegistrationType field.
delete_registrationdeleteregionPermanently delete an existing registration from your account.
discard_registration_versionexecregion, RegistrationIdDiscard the current version of the registration.
submit_registration_versionexecregion, RegistrationIdSubmit the specified registration for review and approval.

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

SELECT
additional_attributes,
approved_version_number,
created_timestamp,
current_version_number,
latest_denied_version_number,
registration_arn,
registration_id,
registration_status,
registration_type
FROM aws.pinpoint_sms_voice_v2.registrations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new registration based on the RegistrationType field.

INSERT INTO aws.pinpoint_sms_voice_v2.registrations (
RegistrationType,
Tags,
ClientToken,
region
)
SELECT
'{{ RegistrationType }}' /* required */,
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
additional_attributes,
created_timestamp,
current_version_number,
registration_arn,
registration_id,
registration_status,
registration_type,
tags
;

DELETE examples

Permanently delete an existing registration from your account.

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

Lifecycle Methods

Discard the current version of the registration.

EXEC aws.pinpoint_sms_voice_v2.registrations.discard_registration_version
@region='{{ region }}' --required
@@json=
'{
"RegistrationId": "{{ RegistrationId }}"
}'
;