AWS SDK Version 3 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.

Adds one or more attachments to an attachment set.

An attachment set is a temporary container for attachments that you add to a case or case communication. The set is available for 1 hour after it's created. The expiryTime returned in the response is when the set expires.

  • You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.

  • If you call the Amazon Web Services Support API from an account that doesn't have a Business, Enterprise On-Ramp, or Enterprise Support plan, the SubscriptionRequiredException error message appears. For information about changing your support plan, see Amazon Web Services Support.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginAddAttachmentsToSet and EndAddAttachmentsToSet.

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

Syntax

C#
public virtual Task<AddAttachmentsToSetResponse> AddAttachmentsToSetAsync(
         AddAttachmentsToSetRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.AWSSupport.Model.AddAttachmentsToSetRequest

Container for the necessary parameters to execute the AddAttachmentsToSet 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 AddAttachmentsToSet service method, as returned by AWSSupport.

Exceptions

ExceptionCondition
AttachmentLimitExceededException The limit for the number of attachment sets created in a short period of time has been exceeded.
AttachmentSetExpiredException The expiration time of the attachment set has passed. The set expires 1 hour after it is created.
AttachmentSetIdNotFoundException An attachment set with the specified ID could not be found.
AttachmentSetSizeLimitExceededException A limit for the size of an attachment set has been exceeded. The limits are three attachments and 5 MB per attachment.
InternalServerErrorException An internal server error occurred.

Version Information

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

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer

See Also