@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface ConnectParticipantClient extends AwsClient
builder()
method.
Amazon Connect is an easy-to-use omnichannel cloud contact center service that enables companies of any size to deliver superior customer service at a lower cost. Amazon Connect communications capabilities make it easy for companies to deliver personalized interactions across communication channels, including chat.
Use the Amazon Connect Participant Service to manage participants (for example, agents, customers, and managers listening in), and to send messages and events within a chat contact. The APIs in the service enable the following: sending chat messages, attachment sharing, managing a participant's connection state and message events, and retrieving chat transcripts.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static ConnectParticipantClientBuilder |
builder()
Create a builder that can be used to configure and create a
ConnectParticipantClient. |
default CompleteAttachmentUploadResponse |
completeAttachmentUpload(CompleteAttachmentUploadRequest completeAttachmentUploadRequest)
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in
StartAttachmentUpload API.
|
default CompleteAttachmentUploadResponse |
completeAttachmentUpload(Consumer<CompleteAttachmentUploadRequest.Builder> completeAttachmentUploadRequest)
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in
StartAttachmentUpload API.
|
static ConnectParticipantClient |
create()
Create a
ConnectParticipantClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateParticipantConnectionResponse |
createParticipantConnection(Consumer<CreateParticipantConnectionRequest.Builder> createParticipantConnectionRequest)
Creates the participant's connection.
|
default CreateParticipantConnectionResponse |
createParticipantConnection(CreateParticipantConnectionRequest createParticipantConnectionRequest)
Creates the participant's connection.
|
default DisconnectParticipantResponse |
disconnectParticipant(Consumer<DisconnectParticipantRequest.Builder> disconnectParticipantRequest)
Disconnects a participant.
|
default DisconnectParticipantResponse |
disconnectParticipant(DisconnectParticipantRequest disconnectParticipantRequest)
Disconnects a participant.
|
default GetAttachmentResponse |
getAttachment(Consumer<GetAttachmentRequest.Builder> getAttachmentRequest)
Provides a pre-signed URL for download of a completed attachment.
|
default GetAttachmentResponse |
getAttachment(GetAttachmentRequest getAttachmentRequest)
Provides a pre-signed URL for download of a completed attachment.
|
default GetTranscriptResponse |
getTranscript(Consumer<GetTranscriptRequest.Builder> getTranscriptRequest)
Retrieves a transcript of the session, including details about any attachments.
|
default GetTranscriptResponse |
getTranscript(GetTranscriptRequest getTranscriptRequest)
Retrieves a transcript of the session, including details about any attachments.
|
default GetTranscriptIterable |
getTranscriptPaginator(Consumer<GetTranscriptRequest.Builder> getTranscriptRequest)
Retrieves a transcript of the session, including details about any attachments.
|
default GetTranscriptIterable |
getTranscriptPaginator(GetTranscriptRequest getTranscriptRequest)
Retrieves a transcript of the session, including details about any attachments.
|
default SendEventResponse |
sendEvent(Consumer<SendEventRequest.Builder> sendEventRequest)
Sends an event.
|
default SendEventResponse |
sendEvent(SendEventRequest sendEventRequest)
Sends an event.
|
default SendMessageResponse |
sendMessage(Consumer<SendMessageRequest.Builder> sendMessageRequest)
Sends a message.
|
default SendMessageResponse |
sendMessage(SendMessageRequest sendMessageRequest)
Sends a message.
|
default ConnectParticipantServiceClientConfiguration |
serviceClientConfiguration() |
static ServiceMetadata |
serviceMetadata() |
default StartAttachmentUploadResponse |
startAttachmentUpload(Consumer<StartAttachmentUploadRequest.Builder> startAttachmentUploadRequest)
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
|
default StartAttachmentUploadResponse |
startAttachmentUpload(StartAttachmentUploadRequest startAttachmentUploadRequest)
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompleteAttachmentUploadResponse completeAttachmentUpload(CompleteAttachmentUploadRequest completeAttachmentUploadRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, ConnectParticipantException
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
completeAttachmentUploadRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.ServiceQuotaExceededException - The number of attachments per contact exceeds the quota.ConflictException - An attachment with that identifier is already being uploaded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CompleteAttachmentUploadResponse completeAttachmentUpload(Consumer<CompleteAttachmentUploadRequest.Builder> completeAttachmentUploadRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, ConnectParticipantException
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a convenience which creates an instance of the CompleteAttachmentUploadRequest.Builder avoiding
the need to create one manually via CompleteAttachmentUploadRequest.builder()
completeAttachmentUploadRequest - A Consumer that will call methods on CompleteAttachmentUploadRequest.Builder to create a
request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.ServiceQuotaExceededException - The number of attachments per contact exceeds the quota.ConflictException - An attachment with that identifier is already being uploaded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateParticipantConnectionResponse createParticipantConnection(CreateParticipantConnectionRequest createParticipantConnectionRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
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.
createParticipantConnectionRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateParticipantConnectionResponse createParticipantConnection(Consumer<CreateParticipantConnectionRequest.Builder> createParticipantConnectionRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
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.
This is a convenience which creates an instance of the CreateParticipantConnectionRequest.Builder
avoiding the need to create one manually via CreateParticipantConnectionRequest.builder()
createParticipantConnectionRequest - A Consumer that will call methods on CreateParticipantConnectionRequest.Builder to create
a request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisconnectParticipantResponse disconnectParticipant(DisconnectParticipantRequest disconnectParticipantRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Disconnects a participant.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
disconnectParticipantRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisconnectParticipantResponse disconnectParticipant(Consumer<DisconnectParticipantRequest.Builder> disconnectParticipantRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Disconnects a participant.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a convenience which creates an instance of the DisconnectParticipantRequest.Builder avoiding the
need to create one manually via DisconnectParticipantRequest.builder()
disconnectParticipantRequest - A Consumer that will call methods on DisconnectParticipantRequest.Builder to create a
request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAttachmentResponse getAttachment(GetAttachmentRequest getAttachmentRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
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.
getAttachmentRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetAttachmentResponse getAttachment(Consumer<GetAttachmentRequest.Builder> getAttachmentRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
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.
This is a convenience which creates an instance of the GetAttachmentRequest.Builder avoiding the need to
create one manually via GetAttachmentRequest.builder()
getAttachmentRequest - A Consumer that will call methods on GetAttachmentRequest.Builder to create a request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTranscriptResponse getTranscript(GetTranscriptRequest getTranscriptRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Retrieves a transcript of the session, including details about any attachments. For information about accessing past chat contact transcripts for a persistent chat, see Enable persistent chat.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
getTranscriptRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTranscriptResponse getTranscript(Consumer<GetTranscriptRequest.Builder> getTranscriptRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Retrieves a transcript of the session, including details about any attachments. For information about accessing past chat contact transcripts for a persistent chat, see Enable persistent chat.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a convenience which creates an instance of the GetTranscriptRequest.Builder avoiding the need to
create one manually via GetTranscriptRequest.builder()
getTranscriptRequest - A Consumer that will call methods on GetTranscriptRequest.Builder to create a request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTranscriptIterable getTranscriptPaginator(GetTranscriptRequest getTranscriptRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Retrieves a transcript of the session, including details about any attachments. For information about accessing past chat contact transcripts for a persistent chat, see Enable persistent chat.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a variant of
getTranscript(software.amazon.awssdk.services.connectparticipant.model.GetTranscriptRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.connectparticipant.paginators.GetTranscriptIterable responses = client.getTranscriptPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.connectparticipant.paginators.GetTranscriptIterable responses = client
.getTranscriptPaginator(request);
for (software.amazon.awssdk.services.connectparticipant.model.GetTranscriptResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.connectparticipant.paginators.GetTranscriptIterable responses = client.getTranscriptPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getTranscript(software.amazon.awssdk.services.connectparticipant.model.GetTranscriptRequest)
operation.
getTranscriptRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTranscriptIterable getTranscriptPaginator(Consumer<GetTranscriptRequest.Builder> getTranscriptRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Retrieves a transcript of the session, including details about any attachments. For information about accessing past chat contact transcripts for a persistent chat, see Enable persistent chat.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a variant of
getTranscript(software.amazon.awssdk.services.connectparticipant.model.GetTranscriptRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.connectparticipant.paginators.GetTranscriptIterable responses = client.getTranscriptPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.connectparticipant.paginators.GetTranscriptIterable responses = client
.getTranscriptPaginator(request);
for (software.amazon.awssdk.services.connectparticipant.model.GetTranscriptResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.connectparticipant.paginators.GetTranscriptIterable responses = client.getTranscriptPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getTranscript(software.amazon.awssdk.services.connectparticipant.model.GetTranscriptRequest)
operation.
This is a convenience which creates an instance of the GetTranscriptRequest.Builder avoiding the need to
create one manually via GetTranscriptRequest.builder()
getTranscriptRequest - A Consumer that will call methods on GetTranscriptRequest.Builder to create a request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SendEventResponse sendEvent(SendEventRequest sendEventRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Sends an event.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
sendEventRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SendEventResponse sendEvent(Consumer<SendEventRequest.Builder> sendEventRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Sends an event.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a convenience which creates an instance of the SendEventRequest.Builder avoiding the need to
create one manually via SendEventRequest.builder()
sendEventRequest - A Consumer that will call methods on SendEventRequest.Builder to create a request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SendMessageResponse sendMessage(SendMessageRequest sendMessageRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Sends a message.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
sendMessageRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SendMessageResponse sendMessage(Consumer<SendMessageRequest.Builder> sendMessageRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, ConnectParticipantException
Sends a message.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a convenience which creates an instance of the SendMessageRequest.Builder avoiding the need to
create one manually via SendMessageRequest.builder()
sendMessageRequest - A Consumer that will call methods on SendMessageRequest.Builder to create a request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StartAttachmentUploadResponse startAttachmentUpload(StartAttachmentUploadRequest startAttachmentUploadRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectParticipantException
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
startAttachmentUploadRequest - AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.ServiceQuotaExceededException - The number of attachments per contact exceeds the quota.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault StartAttachmentUploadResponse startAttachmentUpload(Consumer<StartAttachmentUploadRequest.Builder> startAttachmentUploadRequest) throws AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectParticipantException
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
ConnectionToken is used for invoking this API instead of ParticipantToken.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
This is a convenience which creates an instance of the StartAttachmentUploadRequest.Builder avoiding the
need to create one manually via StartAttachmentUploadRequest.builder()
startAttachmentUploadRequest - A Consumer that will call methods on StartAttachmentUploadRequest.Builder to create a
request.AccessDeniedException - You do not have sufficient access to perform this action.InternalServerException - This exception occurs when there is an internal failure in the Amazon Connect service.ThrottlingException - The request was denied due to request throttling.ValidationException - The input fails to satisfy the constraints specified by Amazon Connect.ServiceQuotaExceededException - The number of attachments per contact exceeds the quota.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ConnectParticipantException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ConnectParticipantClient create()
ConnectParticipantClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static ConnectParticipantClientBuilder builder()
ConnectParticipantClient.static ServiceMetadata serviceMetadata()
default ConnectParticipantServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientCopyright © 2023. All rights reserved.