amazonka-support-1.5.0: Amazon Support SDK.

Copyright (c) 2013-2017 Brendan Hay Mozilla Public License, v. 2.0. Brendan Hay auto-generated non-portable (GHC extensions) None Haskell2010

Description

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.

# Creating a Request

Creates a value of AddAttachmentsToSet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• aatsAttachmentSetId - The ID of the 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.
• aatsAttachments - One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.

See: addAttachmentsToSet smart constructor.

Instances

# Request Lenses

The ID of the 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.

One or more attachments to add to the set. The limit is 3 attachments per set, and the size limit is 5 MB per attachment.

# Destructuring the Response

Arguments

 :: Int aatsrsResponseStatus -> AddAttachmentsToSetResponse

Creates a value of AddAttachmentsToSetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

• aatsrsExpiryTime - The time and date when the attachment set expires.
• aatsrsAttachmentSetId - The ID of the attachment set. If an attachmentSetId was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId was specified, the attachments are added to the specified set, if it exists.
• aatsrsResponseStatus - -- | The response status code.

The ID and expiry time of the attachment set returned by the AddAttachmentsToSet operation.

See: addAttachmentsToSetResponse smart constructor.

Instances

The ID of the attachment set. If an attachmentSetId was not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId was specified, the attachments are added to the specified set, if it exists.