Returns one or more presigned upload URLs for uploading a large file attachment to a support case by using a multipart upload workflow. The maximum file size that you can upload with this workflow is 150 MB, and parts can be up to 100 MB each. Initiate a new upload by providing fileName and fileSizeBytes ; the response returns a unique uploadId , the part size, the total number of parts, and a list of presigned upload URLs for the requested range of parts. A maximum of 10 upload URLs are returned per call. To retrieve more upload URLs for an upload that’s already in progress, call GetAttachmentUploadLinks again with the existing uploadId and a new uploadRange .
Upload each part to its presigned URL by using HTTP PUT and capture the ETag from the response. After you upload all parts, call CompleteAttachmentUpload with the uploadId and the list of part indexes and ETags to finalize the upload. You can then attach the upload to a case by passing the uploadId in the uploadIds parameter of CreateCase or AddCommunicationToCase . To monitor progress before completion, call DescribeAttachmentUploadStatus .
SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support .See also: AWS API Documentation
get-attachment-upload-links
--file-name <value>
[--file-size-bytes <value>]
[--upload-id <value>]
[--upload-range <value>]
[--dry-run | --no-dry-run]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
--file-name (string) [required]
The name of the file to upload, including the file extension. This value is required when you initiate a new upload.
--file-size-bytes (long)
The total size of the file in bytes. The service uses this value to calculate the total number of parts and the size of each part. Required when you initiate a new upload (when
uploadIdisn’t provided). Valid range: 1 to 157,286,400 bytes (approximately 150 MB).Constraints:
- min:
1- max:
157286400
--upload-id (string)
The unique identifier of an in-progress multipart upload, returned by a previous call to
GetAttachmentUploadLinks. SpecifyuploadIdto retrieve additional presigned upload URLs for an upload that has already been initiated. Required whenfileSizeBytesisn’t provided. Length: 1 to 2,048 characters.Constraints:
- min:
1- max:
2048
--upload-range (structure)
The range of part indexes for which to return presigned upload URLs. Use this parameter to page through the upload URLs for a large file across multiple calls. If you omit this parameter, the service determines the range to return.
startIndex -> (integer) [required]
The starting part index of the range, inclusive. Part indexes start at 1.
Constraints:
- min:
1endIndex -> (integer)
The ending part index of the range, exclusive. The range is half-open:
startIndexis inclusive andendIndexis exclusive. For example, a range withstartIndexof 1 andendIndexof 4 requests URLs for parts 1, 2, and 3. The range size (endIndex-startIndex) must not exceed 10. If you omitendIndex, the service defaults tostartIndex+ 10, capped by the total number of parts.Constraints:
- min:
2
Shorthand Syntax:
startIndex=integer,endIndex=integer
JSON Syntax:
{
"startIndex": integer,
"endIndex": integer
}
--dry-run | --no-dry-run (boolean)
Specifies whether to validate the request without actually generating upload URLs. When set totrue, the request is validated but no URLs are returned, and the operation returns aDryRunOperationException. When omitted or set tofalse, the request runs normally.
--cli-input-json | --cli-input-yaml (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
--cli-error-format (string)
The formatting style for error output. By default, errors are displayed in enhanced format.
uploadId -> (string)
The unique identifier for the multipart upload. Use this value in subsequent calls to
GetAttachmentUploadLinks, DescribeAttachmentUploadStatus , and CompleteAttachmentUpload , and to attach the upload to a case through theuploadIdsparameter on CreateCase or AddCommunicationToCase .Constraints:
- min:
1- max:
2048
partSizeBytes -> (long)
The size, in bytes, of each part. Split the file into parts of this size before you upload them to the presigned URLs. For an upload with
ntotal parts, parts 1 throughn- 1 are exactly this size; the last part may be smaller. Maximum: 104,857,600 bytes (approximately 100 MB).Constraints:
- min:
1- max:
104857600
totalParts -> (integer)
The total number of parts that the file is split into. Upload one part to each presigned URL.
nextIndex -> (integer)
The next part index to request presigned URLs for. If all upload URLs for the file have been returned, this field isnull. Use this value as thestartIndexinuploadRangeon a subsequent call toGetAttachmentUploadLinksto retrieve the next batch of upload URLs.
uploadUrls -> (list)
The list of presigned upload URLs for the requested range of parts. The list contains at most 10 URLs per call. Upload each part to its corresponding URL by using HTTP
PUTbefore the URL expires.(structure)
A presigned URL for uploading a single part of a multipart attachment upload, along with the part index and the date and time the URL expires. Returned by GetAttachmentUploadLinks .
url -> (string) [required]
The presigned HTTPS URL that you use to upload a single part with HTTP
PUT. Upload URLs are served fromuploadv1.attachments.support.{region}.amazonaws.com. Theuploadv1prefix is subject to change.Constraints:
- min:
8- pattern:
^https://[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9]\.[a-zA-Z]{2,}(/.*)?$partIndex -> (integer) [required]
The index of the part that this URL uploads.expiryDate -> (string) [required]
The date and time, in ISO-8601 format, when the presigned URL expires. Upload the part before this time.
Constraints:
- min:
8- max:
30