AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.7.2 or higher.

Namespace: Amazon.AWSSupport
Assembly: AWSSDK.AWSSupport.dll
Version: 3.x.y.z

Syntax

C#
public virtual Task<CompleteAttachmentUploadResponse> CompleteAttachmentUploadAsync(
         CompleteAttachmentUploadRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.AWSSupport.Model.CompleteAttachmentUploadRequest

Container for the necessary parameters to execute the CompleteAttachmentUpload service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the CompleteAttachmentUpload service method, as returned by AWSSupport.

Exceptions

ExceptionCondition
DryRunOperationException The request was valid, but the operation wasn't performed because dryRun was set to true.
InternalServerErrorException An internal server error occurred.
UploadIdNotFoundException The specified uploadId couldn't be located.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer

See Also