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.CreateParticipantConnection

Description

Creates the participant's connection.

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.

Message streaming support: This API can also be used together with the StartContactStreaming API to create a participant connection for chat contacts that are not using a websocket. For more information about message streaming, Enable real-time chat message streaming in the Amazon Connect Administrator Guide.

Feature specifications: For information about feature specifications, such as the allowed number of open websocket connections per participant, see Feature specifications in the Amazon Connect Administrator Guide.

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
ToJSON 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

AWSRequest 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 #

Read CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Show CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

NFData CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Eq CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Hashable CreateParticipantConnection Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

type AWSResponse 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" "amazonka-connectparticipant-2.0-I4GmkIlwxQUGg1dW7eNFQJ" 'False) (C1 ('MetaCons "CreateParticipantConnection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectParticipant") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ConnectionType))) :*: S1 ('MetaSel ('Just "participantToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:connectParticipant:CreateParticipantConnection', createParticipantConnection_connectParticipant - Amazon Connect Participant is used to mark the participant as connected for message streaming.

CreateParticipantConnection, createParticipantConnection_type - Type of connection information required. This can be omitted if ConnectParticipant is true.

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

The ParticipantToken as obtained from StartChatContact API response.

Request Lenses

createParticipantConnection_connectParticipant :: Lens' CreateParticipantConnection (Maybe Bool) Source #

Amazon Connect Participant is used to mark the participant as connected for message streaming.

createParticipantConnection_type :: Lens' CreateParticipantConnection (Maybe (NonEmpty ConnectionType)) Source #

Type of connection information required. This can be omitted if ConnectParticipant is true.

createParticipantConnection_participantToken :: Lens' CreateParticipantConnection Text Source #

This is a header parameter.

The ParticipantToken as obtained from StartChatContact API response.

Destructuring the Response

data CreateParticipantConnectionResponse Source #

Constructors

CreateParticipantConnectionResponse' 

Fields

Instances

Instances details
Generic 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

NFData CreateParticipantConnectionResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.CreateParticipantConnection

Eq 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" "amazonka-connectparticipant-2.0-I4GmkIlwxQUGg1dW7eNFQJ" '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.