complete_attachment_upload
async
¶
complete_attachment_upload(
upload_id: UploadId,
completed_uploads: CompletedUploadList,
*,
config_overrides: Optional[AsyncSupportClientConfig] = None,
dry_run: Optional[NullableBooleanType] = None,
) -> CompleteAttachmentUploadResponse
Completes an attachment upload that was started with GetAttachmentUploadLinks. After you upload a part of the file to its presigned Amazon S3 URL, call CompleteAttachmentUpload with the partIndex and eTag of that part. You can include one part per call, or multiple parts in a single call. After CompleteAttachmentUpload has been called for every part of the file, the service processes the upload asynchronously. The attachment-ready status might not be reflected immediately. Use DescribeAttachmentUploadStatus to poll for the uploadStatus to become attachment-ready before passing the uploadId to CreateCase or AddCommunicationToCase.
Parameters:
-
upload_id(UploadId) –The identifier associated with the upload to complete.
-
completed_uploads(CompletedUploadList) –The list of parts being reported as completed in this call. Each entry must contain the
partIndexof an uploaded part and theETagreturned by Amazon S3 when that part was uploaded. -
dry_run(Optional[NullableBooleanType], default:None) –Specifies whether to validate the request without actually completing the upload. When set to
true, the request is validated but the upload isn't finalized, and the operation returns aDryRunOperationException. When omitted or set tofalse, the request runs normally.
Raises:
-
DryRunOperationException–The request was valid, but the operation wasn't performed because
dryRunwas set totrue. -
InternalServerError–An internal server error occurred.
-
UploadIdNotFound–The specified
uploadIdcouldn't be located. -
UnknownServiceError–The service returned an error code this client does not model.