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. If an attachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists.

An attachment set is a temporary container for attachments that are to be added to a case or case communication. The set is available for one hour after it is created; the expiryTime returned in the response indicates when the set expires. The maximum number of attachments in a set is 3, and the maximum size of any attachment in the set is 5 MB.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to AddAttachmentsToSetAsync.

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


public virtual AddAttachmentsToSetResponse AddAttachmentsToSet(
         AddAttachmentsToSetRequest request
Type: Amazon.AWSSupport.Model.AddAttachmentsToSetRequest

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

Return Value
The response from the AddAttachmentsToSet service method, as returned by AWSSupport.


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 3 attachments and 5 MB per attachment.
InternalServerErrorException An internal server error occurred.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also