| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.ConnectParticipant.GetAttachment
Description
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
Synopsis
- data GetAttachment = GetAttachment' {}
- newGetAttachment :: Text -> Text -> GetAttachment
- getAttachment_attachmentId :: Lens' GetAttachment Text
- getAttachment_connectionToken :: Lens' GetAttachment Text
- data GetAttachmentResponse = GetAttachmentResponse' {}
- newGetAttachmentResponse :: Int -> GetAttachmentResponse
- getAttachmentResponse_urlExpiry :: Lens' GetAttachmentResponse (Maybe Text)
- getAttachmentResponse_url :: Lens' GetAttachmentResponse (Maybe Text)
- getAttachmentResponse_httpStatus :: Lens' GetAttachmentResponse Int
Creating a Request
data GetAttachment Source #
See: newGetAttachment smart constructor.
Constructors
| GetAttachment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetAttachment |
Create a value of GetAttachment with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attachmentId:GetAttachment', getAttachment_attachmentId - A unique identifier for the attachment.
$sel:connectionToken:GetAttachment', getAttachment_connectionToken - The authentication token associated with the participant's connection.
Request Lenses
getAttachment_attachmentId :: Lens' GetAttachment Text Source #
A unique identifier for the attachment.
getAttachment_connectionToken :: Lens' GetAttachment Text Source #
The authentication token associated with the participant's connection.
Destructuring the Response
data GetAttachmentResponse Source #
See: newGetAttachmentResponse smart constructor.
Constructors
| GetAttachmentResponse' | |
Fields
| |
Instances
newGetAttachmentResponse Source #
Create a value of GetAttachmentResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:urlExpiry:GetAttachmentResponse', getAttachmentResponse_urlExpiry - The expiration time of the URL in ISO timestamp. It's specified in ISO
8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
2019-11-08T02:41:28.172Z.
$sel:url:GetAttachmentResponse', getAttachmentResponse_url - The pre-signed URL using which file would be downloaded from Amazon S3
by the API caller.
$sel:httpStatus:GetAttachmentResponse', getAttachmentResponse_httpStatus - The response's http status code.
Response Lenses
getAttachmentResponse_urlExpiry :: Lens' GetAttachmentResponse (Maybe Text) Source #
The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.
getAttachmentResponse_url :: Lens' GetAttachmentResponse (Maybe Text) Source #
The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.
getAttachmentResponse_httpStatus :: Lens' GetAttachmentResponse Int Source #
The response's http status code.