Struct aws_sdk_connectparticipant::client::fluent_builders::CreateParticipantConnection [−][src]
pub struct CreateParticipantConnection<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateParticipantConnection
.
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.
Implementations
impl<C, M, R> CreateParticipantConnection<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateParticipantConnection<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateParticipantConnectionOutput, SdkError<CreateParticipantConnectionError>> where
R::Policy: SmithyRetryPolicy<CreateParticipantConnectionInputOperationOutputAlias, CreateParticipantConnectionOutput, CreateParticipantConnectionError, CreateParticipantConnectionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateParticipantConnectionOutput, SdkError<CreateParticipantConnectionError>> where
R::Policy: SmithyRetryPolicy<CreateParticipantConnectionInputOperationOutputAlias, CreateParticipantConnectionOutput, CreateParticipantConnectionError, CreateParticipantConnectionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Appends an item to Type
.
To override the contents of this collection use set_type
.
Type of connection information required.
Type of connection information required.
This is a header parameter.
The Participant Token as obtained from StartChatContact API response.
This is a header parameter.
The Participant Token as obtained from StartChatContact API response.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateParticipantConnection<C, M, R>
impl<C, M, R> Send for CreateParticipantConnection<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateParticipantConnection<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateParticipantConnection<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateParticipantConnection<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more