Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
ConnectionToken
is used for invoking this API instead of
ParticipantToken
.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
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_url :: Lens' GetAttachmentResponse (Maybe Text)
- getAttachmentResponse_urlExpiry :: Lens' GetAttachmentResponse (Maybe Text)
- getAttachmentResponse_httpStatus :: Lens' GetAttachmentResponse Int
Creating a Request
data GetAttachment Source #
See: newGetAttachment
smart constructor.
GetAttachment' | |
|
Instances
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:
GetAttachment
, getAttachment_attachmentId
- A unique identifier for the attachment.
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.
GetAttachmentResponse' | |
|
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:
GetAttachmentResponse
, getAttachmentResponse_url
- This is the pre-signed URL that can be used for uploading the file to
Amazon S3 when used in response to
StartAttachmentUpload.
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:httpStatus:GetAttachmentResponse'
, getAttachmentResponse_httpStatus
- The response's http status code.
Response Lenses
getAttachmentResponse_url :: Lens' GetAttachmentResponse (Maybe Text) Source #
This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.
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_httpStatus :: Lens' GetAttachmentResponse Int Source #
The response's http status code.