Copyright | (c) 2013-2015 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 |
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.
- 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:
data AddAttachmentsToSet Source
See: addAttachmentsToSet
smart constructor.
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:
data AddAttachmentsToSetResponse Source
The ID and expiry time of the attachment set returned by the AddAttachmentsToSet operation.
See: addAttachmentsToSetResponse
smart constructor.
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.