Skip to main content

registration_attachments

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

Overview

Nameregistration_attachments
TypeResource
Idaws.pinpoint_sms_voice_v2.registration_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachment_statusstringThe status of the registration attachment. UPLOAD_IN_PROGRESS The attachment is being uploaded. UPLOAD_COMPLETE The attachment has been uploaded. UPLOAD_FAILED The attachment failed to uploaded. DELETED The attachment has been deleted.. (UPLOAD_IN_PROGRESS, UPLOAD_COMPLETE, UPLOAD_FAILED, DELETED)
attachment_upload_error_reasonstringA description of why the upload didn't successfully complete. (INTERNAL_ERROR)
attachment_urlstringThe URL to the document that's associated with the registration attachment.
created_timestampstring (date-time)The time when the registration attachment was created, in UNIX epoch time format.
registration_attachment_arnstringThe Amazon Resource Name (ARN) for the registration attachment.
registration_attachment_idstringThe unique identifier for the registration attachment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_registration_attachmentsselectregionRetrieves the specified registration attachments or all registration attachments associated with your Amazon Web Services account.
create_registration_attachmentinsertregionCreate a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 500KB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted. Use either AttachmentUrl or AttachmentBody to upload your attachment. If both are specified then an exception is returned.
delete_registration_attachmentdeleteregionPermanently delete the specified registration attachment.

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 registration attachments or all registration attachments associated with your Amazon Web Services account.

SELECT
attachment_status,
attachment_upload_error_reason,
attachment_url,
created_timestamp,
registration_attachment_arn,
registration_attachment_id
FROM aws.pinpoint_sms_voice_v2.registration_attachments
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 500KB and valid file extensions are PDF, JPEG and PNG. For example, many sender ID registrations require a signed “letter of authorization” (LOA) to be submitted. Use either AttachmentUrl or AttachmentBody to upload your attachment. If both are specified then an exception is returned.

INSERT INTO aws.pinpoint_sms_voice_v2.registration_attachments (
AttachmentBody,
AttachmentUrl,
Tags,
ClientToken,
region
)
SELECT
'{{ AttachmentBody }}',
'{{ AttachmentUrl }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
attachment_status,
created_timestamp,
registration_attachment_arn,
registration_attachment_id,
tags
;

DELETE examples

Permanently delete the specified registration attachment.

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