Create a new registration attachment to use for uploading a file or a URL to a file¶
Description¶
Create a new registration attachment to use for uploading a file or a URL to a file. The maximum file size is 5MB 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.
Usage¶
Arguments¶
-
AttachmentBodyThe registration file to upload. The maximum file size is 5MB and valid file extensions are PDF, JPEG and PNG.
-
AttachmentUrlRegistration files have to be stored in an Amazon S3 bucket. The URI to use when sending is in the format
s3://BucketName/FileName. -
TagsAn array of tags (key and value pairs) to associate with the registration attachment.
-
ClientTokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
Value¶
A list with the following syntax:
list(
RegistrationAttachmentArn = "string",
RegistrationAttachmentId = "string",
AttachmentStatus = "UPLOAD_IN_PROGRESS"|"UPLOAD_COMPLETE"|"UPLOAD_FAILED"|"DELETED",
Tags = list(
list(
Key = "string",
Value = "string"
)
),
CreatedTimestamp = as.POSIXct(
"2015-01-01"
)
)