amazonka-support-1.2.0: Amazon Support SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Support.AddAttachmentsToSet

Contents

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.

See: AWS API Reference for AddAttachmentsToSet.

Synopsis

Creating a Request

addAttachmentsToSet :: AddAttachmentsToSet Source

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:

Request Lenses

aatsAttachmentSetId :: Lens' AddAttachmentsToSet (Maybe Text) Source

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 :: Lens' AddAttachmentsToSet [Attachment] Source

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

addAttachmentsToSetResponse Source

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:

Response Lenses

aatsrsExpiryTime :: Lens' AddAttachmentsToSetResponse (Maybe Text) Source

The time and date when the attachment set expires.

aatsrsAttachmentSetId :: Lens' AddAttachmentsToSetResponse (Maybe Text) Source

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.