libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ConnectParticipant.CreateParticipantConnection

Description

Creates the participant's connection. Note that ParticipantToken is used for invoking this API instead of ConnectionToken.

The participant token is valid for the lifetime of the participant – until they are part of a contact.

The response URL for WEBSOCKET Type has a connect expiry timeout of 100s. Clients must manually connect to the returned websocket URL and subscribe to the desired topic.

For chat, you need to publish the following on the established websocket connection:

{"topic":"aws/subscribe","content":{"topics":["aws/chat"]}}

Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter, clients need to call this API again to obtain a new websocket URL and perform the same steps as before.

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

Synopsis

Creating a Request

data CreateParticipantConnection Source #

See: newCreateParticipantConnection smart constructor.

Constructors

CreateParticipantConnection' 

Fields

Instances

Instances details
Eq CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Read CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Show CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Generic CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Associated Types

type Rep CreateParticipantConnection :: Type -> Type #

NFData CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Hashable CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

ToJSON CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

AWSRequest CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

ToHeaders CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

ToPath CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

ToQuery CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

type Rep CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

type Rep CreateParticipantConnection = D1 ('MetaData "CreateParticipantConnection" "Amazonka.ConnectParticipant.CreateParticipantConnection" "libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant" 'False) (C1 ('MetaCons "CreateParticipantConnection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty ConnectionType)) :*: S1 ('MetaSel ('Just "participantToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

newCreateParticipantConnection Source #

Create a value of CreateParticipantConnection 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:type':CreateParticipantConnection', createParticipantConnection_type - Type of connection information required.

$sel:participantToken:CreateParticipantConnection', createParticipantConnection_participantToken - This is a header parameter.

The Participant Token as obtained from StartChatContact API response.

Request Lenses

createParticipantConnection_participantToken :: Lens' CreateParticipantConnection Text Source #

This is a header parameter.

The Participant Token as obtained from StartChatContact API response.

Destructuring the Response

data CreateParticipantConnectionResponse Source #

Constructors

CreateParticipantConnectionResponse' 

Fields

Instances

Instances details
Eq CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Read CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Show CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Generic CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

NFData CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

type Rep CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

type Rep CreateParticipantConnectionResponse = D1 ('MetaData "CreateParticipantConnectionResponse" "Amazonka.ConnectParticipant.CreateParticipantConnection" "libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant" 'False) (C1 ('MetaCons "CreateParticipantConnectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConnectionCredentials)) :*: (S1 ('MetaSel ('Just "websocket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Websocket)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateParticipantConnectionResponse Source #

Create a value of CreateParticipantConnectionResponse 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:connectionCredentials:CreateParticipantConnectionResponse', createParticipantConnectionResponse_connectionCredentials - Creates the participant's connection credentials. The authentication token associated with the participant's connection.

$sel:websocket:CreateParticipantConnectionResponse', createParticipantConnectionResponse_websocket - Creates the participant's websocket connection.

$sel:httpStatus:CreateParticipantConnectionResponse', createParticipantConnectionResponse_httpStatus - The response's http status code.

Response Lenses

createParticipantConnectionResponse_connectionCredentials :: Lens' CreateParticipantConnectionResponse (Maybe ConnectionCredentials) Source #

Creates the participant's connection credentials. The authentication token associated with the participant's connection.