amazonka-connectparticipant-2.0: Amazon Connect Participant Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

ConnectionToken is used for invoking this API instead of ParticipantToken.

The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.

Synopsis

Creating a Request

data GetAttachment Source #

See: newGetAttachment smart constructor.

Constructors

GetAttachment' 

Fields

Instances

Instances details
ToJSON GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

ToHeaders GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

ToPath GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

ToQuery GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

AWSRequest GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Associated Types

type AWSResponse GetAttachment #

Generic GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Associated Types

type Rep GetAttachment :: Type -> Type #

Read GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Show GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

NFData GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Methods

rnf :: GetAttachment -> () #

Eq GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Hashable GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

type AWSResponse GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

type Rep GetAttachment Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

type Rep GetAttachment = D1 ('MetaData "GetAttachment" "Amazonka.ConnectParticipant.GetAttachment" "amazonka-connectparticipant-2.0-I4GmkIlwxQUGg1dW7eNFQJ" 'False) (C1 ('MetaCons "GetAttachment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attachmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "connectionToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetAttachment Source #

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.

Constructors

GetAttachmentResponse' 

Fields

  • url :: Maybe Text

    This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload.

  • urlExpiry :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetAttachmentResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Associated Types

type Rep GetAttachmentResponse :: Type -> Type #

Read GetAttachmentResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Show GetAttachmentResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

NFData GetAttachmentResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

Methods

rnf :: GetAttachmentResponse -> () #

Eq GetAttachmentResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

type Rep GetAttachmentResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.GetAttachment

type Rep GetAttachmentResponse = D1 ('MetaData "GetAttachmentResponse" "Amazonka.ConnectParticipant.GetAttachment" "amazonka-connectparticipant-2.0-I4GmkIlwxQUGg1dW7eNFQJ" 'False) (C1 ('MetaCons "GetAttachmentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "urlExpiry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.