| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Support.AddAttachmentsToSet
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.
- addAttachmentsToSet :: AddAttachmentsToSet
- data AddAttachmentsToSet
- aatsAttachmentSetId :: Lens' AddAttachmentsToSet (Maybe Text)
- aatsAttachments :: Lens' AddAttachmentsToSet [Attachment]
- addAttachmentsToSetResponse :: Int -> AddAttachmentsToSetResponse
- data AddAttachmentsToSetResponse
- aatsrsExpiryTime :: Lens' AddAttachmentsToSetResponse (Maybe Text)
- aatsrsAttachmentSetId :: Lens' AddAttachmentsToSetResponse (Maybe Text)
- aatsrsResponseStatus :: Lens' AddAttachmentsToSetResponse Int
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:
aatsAttachmentSetId- The ID of the attachment set. If anattachmentSetIdis not specified, a new attachment set is created, and the ID of the set is returned in the response. If anattachmentSetIdis 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.
data AddAttachmentsToSet Source #
See: addAttachmentsToSet smart constructor.
Instances
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 #
Arguments
| :: Int | |
| -> 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 anattachmentSetIdwas not specified, a new attachment set is created, and the ID of the set is returned in the response. If anattachmentSetIdwas specified, the attachments are added to the specified set, if it exists.aatsrsResponseStatus- -- | The response status code.
data AddAttachmentsToSetResponse Source #
The ID and expiry time of the attachment set returned by the AddAttachmentsToSet operation.
See: addAttachmentsToSetResponse smart constructor.
Instances
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.
aatsrsResponseStatus :: Lens' AddAttachmentsToSetResponse Int Source #
- - | The response status code.