AWSConnectParticipant
Objective-C
@interface AWSConnectParticipant
Swift
class AWSConnectParticipant
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.
-
The service configuration used to instantiate this service client.
Warning
Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors.Declaration
Objective-C
@property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration -
Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with
defaultServiceConfigurationfrom[AWSServiceManager defaultServiceManager]. The reference to this object is maintained by the SDK, and you do not need to retain it manually.For example, set the default service configuration in
- application:didFinishLaunchingWithOptions:Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider) AWSServiceManager.default().defaultServiceConfiguration = configuration return true}
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:credentialsProvider]; [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration; return YES; }Then call the following to get the default service client:
Swift
let ConnectParticipant = AWSConnectParticipant.default()Objective-C
AWSConnectParticipant *ConnectParticipant = [AWSConnectParticipant defaultConnectParticipant];Declaration
Objective-C
+ (nonnull instancetype)defaultConnectParticipant;Swift
class func `default`() -> SelfReturn Value
The default service client.
-
Creates a service client with the given service configuration and registers it for the key.
For example, set the default service configuration in
- application:didFinishLaunchingWithOptions:Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSConnectParticipant.register(with: configuration!, forKey: "USWest2ConnectParticipant") return true}
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSConnectParticipant registerConnectParticipantWithConfiguration:configuration forKey:@"USWest2ConnectParticipant"]; return YES; }Then call the following to get the service client:
Swift
let ConnectParticipant = AWSConnectParticipant(forKey: "USWest2ConnectParticipant")Objective-C
AWSConnectParticipant *ConnectParticipant = [AWSConnectParticipant ConnectParticipantForKey:@"USWest2ConnectParticipant"];Warning
After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
Declaration
Objective-C
+ (void)registerConnectParticipantWithConfiguration:(id)configuration forKey:(nonnull NSString *)key;Swift
class func register(withConfiguration configuration: Any!, forKey key: String)Parameters
configurationA service configuration object.
keyA string to identify the service client.
-
Retrieves the service client associated with the key. You need to call
+ registerConnectParticipantWithConfiguration:forKey:before invoking this method.For example, set the default service configuration in
- application:didFinishLaunchingWithOptions:Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSConnectParticipant.register(with: configuration!, forKey: "USWest2ConnectParticipant") return true}
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSConnectParticipant registerConnectParticipantWithConfiguration:configuration forKey:@"USWest2ConnectParticipant"]; return YES; }Then call the following to get the service client:
Swift
let ConnectParticipant = AWSConnectParticipant(forKey: "USWest2ConnectParticipant")Objective-C
AWSConnectParticipant *ConnectParticipant = [AWSConnectParticipant ConnectParticipantForKey:@"USWest2ConnectParticipant"];Declaration
Objective-C
+ (nonnull instancetype)ConnectParticipantForKey:(nonnull NSString *)key;Swift
convenience init(forKey key: String)Parameters
keyA string to identify the service client.
Return Value
An instance of the service client.
-
Removes the service client associated with the key and release it.
Warning
Before calling this method, make sure no method is running on this client.
Declaration
Objective-C
+ (void)removeConnectParticipantForKey:(nonnull NSString *)key;Swift
class func remove(forKey key: String)Parameters
keyA string to identify the service client.
-
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API. A conflict exception is thrown when an attachment with that identifier is already being uploaded.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantCompleteAttachmentUploadRequest
See
AWSConnectParticipantCompleteAttachmentUploadResponse
Declaration
Objective-C
- (id)completeAttachmentUpload: (nonnull AWSConnectParticipantCompleteAttachmentUploadRequest *)request;Swift
func completeAttachmentUpload(_ request: AWSConnectParticipantCompleteAttachmentUploadRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CompleteAttachmentUpload service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantCompleteAttachmentUploadResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation,AWSConnectParticipantErrorServiceQuotaExceeded,AWSConnectParticipantErrorConflict. -
Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API. A conflict exception is thrown when an attachment with that identifier is already being uploaded.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantCompleteAttachmentUploadRequest
See
AWSConnectParticipantCompleteAttachmentUploadResponse
Declaration
Objective-C
- (void)completeAttachmentUpload: (nonnull AWSConnectParticipantCompleteAttachmentUploadRequest *) request completionHandler: (void (^_Nullable)( AWSConnectParticipantCompleteAttachmentUploadResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func completeAttachmentUpload(_ request: AWSConnectParticipantCompleteAttachmentUploadRequest) async throws -> AWSConnectParticipantCompleteAttachmentUploadResponseParameters
requestA container for the necessary parameters to execute the CompleteAttachmentUpload service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation,AWSConnectParticipantErrorServiceQuotaExceeded,AWSConnectParticipantErrorConflict. -
Creates the participant’s connection.
ParticipantTokenis used for invoking this API instead ofConnectionToken.The participant token is valid for the lifetime of the participant – until they are part of a contact.
The response URL for
WEBSOCKETType 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.
See
AWSConnectParticipantCreateParticipantConnectionRequest
See
AWSConnectParticipantCreateParticipantConnectionResponse
Declaration
Objective-C
- (id)createParticipantConnection: (nonnull AWSConnectParticipantCreateParticipantConnectionRequest *)request;Swift
func createParticipantConnection(_ request: AWSConnectParticipantCreateParticipantConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateParticipantConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantCreateParticipantConnectionResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Creates the participant’s connection.
ParticipantTokenis used for invoking this API instead ofConnectionToken.The participant token is valid for the lifetime of the participant – until they are part of a contact.
The response URL for
WEBSOCKETType 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.
See
AWSConnectParticipantCreateParticipantConnectionRequest
See
AWSConnectParticipantCreateParticipantConnectionResponse
Declaration
Objective-C
- (void) createParticipantConnection: (nonnull AWSConnectParticipantCreateParticipantConnectionRequest *) request completionHandler: (void (^_Nullable)( AWSConnectParticipantCreateParticipantConnectionResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func createParticipantConnection(_ request: AWSConnectParticipantCreateParticipantConnectionRequest) async throws -> AWSConnectParticipantCreateParticipantConnectionResponseParameters
requestA container for the necessary parameters to execute the CreateParticipantConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Retrieves the view for the specified view token.
See
AWSConnectParticipantDescribeViewRequest
See
AWSConnectParticipantDescribeViewResponse
Declaration
Objective-C
- (id)describeView:(nonnull AWSConnectParticipantDescribeViewRequest *)request;Swift
func describeView(_ request: AWSConnectParticipantDescribeViewRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeView service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantDescribeViewResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorResourceNotFound,AWSConnectParticipantErrorValidation. -
Retrieves the view for the specified view token.
See
AWSConnectParticipantDescribeViewRequest
See
AWSConnectParticipantDescribeViewResponse
Declaration
Objective-C
- (void)describeView:(nonnull AWSConnectParticipantDescribeViewRequest *)request completionHandler: (void (^_Nullable)(AWSConnectParticipantDescribeViewResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeView(_ request: AWSConnectParticipantDescribeViewRequest) async throws -> AWSConnectParticipantDescribeViewResponseParameters
requestA container for the necessary parameters to execute the DescribeView service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorResourceNotFound,AWSConnectParticipantErrorValidation. -
Disconnects a participant.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantDisconnectParticipantRequest
See
AWSConnectParticipantDisconnectParticipantResponse
Declaration
Objective-C
- (id)disconnectParticipant: (nonnull AWSConnectParticipantDisconnectParticipantRequest *)request;Swift
func disconnectParticipant(_ request: AWSConnectParticipantDisconnectParticipantRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisconnectParticipant service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantDisconnectParticipantResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Disconnects a participant.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantDisconnectParticipantRequest
See
AWSConnectParticipantDisconnectParticipantResponse
Declaration
Objective-C
- (void) disconnectParticipant: (nonnull AWSConnectParticipantDisconnectParticipantRequest *)request completionHandler: (void (^_Nullable)( AWSConnectParticipantDisconnectParticipantResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func disconnectParticipant(_ request: AWSConnectParticipantDisconnectParticipantRequest) async throws -> AWSConnectParticipantDisconnectParticipantResponseParameters
requestA container for the necessary parameters to execute the DisconnectParticipant service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantGetAttachmentRequest
See
AWSConnectParticipantGetAttachmentResponse
Declaration
Objective-C
- (id)getAttachment: (nonnull AWSConnectParticipantGetAttachmentRequest *)request;Swift
func getAttachment(_ request: AWSConnectParticipantGetAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantGetAttachmentResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantGetAttachmentRequest
See
AWSConnectParticipantGetAttachmentResponse
Declaration
Objective-C
- (void)getAttachment: (nonnull AWSConnectParticipantGetAttachmentRequest *)request completionHandler:(void (^_Nullable)( AWSConnectParticipantGetAttachmentResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func attachment(_ request: AWSConnectParticipantGetAttachmentRequest) async throws -> AWSConnectParticipantGetAttachmentResponseParameters
requestA container for the necessary parameters to execute the GetAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
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.
If you have a process that consumes events in the transcript of an chat that has ended, note that chat transcripts contain the following event content types if the event has occurred during the chat session:
application/vnd.amazonaws.connect.event.participant.leftapplication/vnd.amazonaws.connect.event.participant.joinedapplication/vnd.amazonaws.connect.event.chat.endedapplication/vnd.amazonaws.connect.event.transfer.succeededapplication/vnd.amazonaws.connect.event.transfer.failed
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantGetTranscriptRequest
See
AWSConnectParticipantGetTranscriptResponse
Declaration
Objective-C
- (id)getTranscript: (nonnull AWSConnectParticipantGetTranscriptRequest *)request;Swift
func getTranscript(_ request: AWSConnectParticipantGetTranscriptRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetTranscript service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantGetTranscriptResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
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.
If you have a process that consumes events in the transcript of an chat that has ended, note that chat transcripts contain the following event content types if the event has occurred during the chat session:
application/vnd.amazonaws.connect.event.participant.leftapplication/vnd.amazonaws.connect.event.participant.joinedapplication/vnd.amazonaws.connect.event.chat.endedapplication/vnd.amazonaws.connect.event.transfer.succeededapplication/vnd.amazonaws.connect.event.transfer.failed
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantGetTranscriptRequest
See
AWSConnectParticipantGetTranscriptResponse
Declaration
Objective-C
- (void)getTranscript: (nonnull AWSConnectParticipantGetTranscriptRequest *)request completionHandler:(void (^_Nullable)( AWSConnectParticipantGetTranscriptResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func transcript(_ request: AWSConnectParticipantGetTranscriptRequest) async throws -> AWSConnectParticipantGetTranscriptResponseParameters
requestA container for the necessary parameters to execute the GetTranscript service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
The
application/vnd.amazonaws.connect.event.connection.acknowledgedContentType will no longer be supported starting December 31, 2024. This event has been migrated to the CreateParticipantConnection API using theConnectParticipantfield.Sends an event. Message receipts are not supported when there are more than two active participants in the chat. Using the SendEvent API for message receipts when a supervisor is barged-in will result in a conflict exception.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantSendEventRequest
See
AWSConnectParticipantSendEventResponse
Declaration
Objective-C
- (id)sendEvent:(nonnull AWSConnectParticipantSendEventRequest *)request;Swift
func sendEvent(_ request: AWSConnectParticipantSendEventRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the SendEvent service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantSendEventResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation,AWSConnectParticipantErrorConflict. -
The
application/vnd.amazonaws.connect.event.connection.acknowledgedContentType will no longer be supported starting December 31, 2024. This event has been migrated to the CreateParticipantConnection API using theConnectParticipantfield.Sends an event. Message receipts are not supported when there are more than two active participants in the chat. Using the SendEvent API for message receipts when a supervisor is barged-in will result in a conflict exception.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantSendEventRequest
See
AWSConnectParticipantSendEventResponse
Declaration
Objective-C
- (void)sendEvent:(nonnull AWSConnectParticipantSendEventRequest *)request completionHandler: (void (^_Nullable)(AWSConnectParticipantSendEventResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func sendEvent(_ request: AWSConnectParticipantSendEventRequest) async throws -> AWSConnectParticipantSendEventResponseParameters
requestA container for the necessary parameters to execute the SendEvent service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation,AWSConnectParticipantErrorConflict. -
Sends a message.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantSendMessageRequest
See
AWSConnectParticipantSendMessageResponse
Declaration
Objective-C
- (id)sendMessage:(nonnull AWSConnectParticipantSendMessageRequest *)request;Swift
func sendMessage(_ request: AWSConnectParticipantSendMessageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the SendMessage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantSendMessageResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Sends a message.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantSendMessageRequest
See
AWSConnectParticipantSendMessageResponse
Declaration
Objective-C
- (void)sendMessage:(nonnull AWSConnectParticipantSendMessageRequest *)request completionHandler: (void (^_Nullable)(AWSConnectParticipantSendMessageResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func sendMessage(_ request: AWSConnectParticipantSendMessageRequest) async throws -> AWSConnectParticipantSendMessageResponseParameters
requestA container for the necessary parameters to execute the SendMessage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation. -
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantStartAttachmentUploadRequest
See
AWSConnectParticipantStartAttachmentUploadResponse
Declaration
Objective-C
- (id)startAttachmentUpload: (nonnull AWSConnectParticipantStartAttachmentUploadRequest *)request;Swift
func startAttachmentUpload(_ request: AWSConnectParticipantStartAttachmentUploadRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the StartAttachmentUpload service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSConnectParticipantStartAttachmentUploadResponse. On failed execution,task.errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation,AWSConnectParticipantErrorServiceQuotaExceeded. -
Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3.
ConnectionTokenis used for invoking this API instead ofParticipantToken.The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
See
AWSConnectParticipantStartAttachmentUploadRequest
See
AWSConnectParticipantStartAttachmentUploadResponse
Declaration
Objective-C
- (void) startAttachmentUpload: (nonnull AWSConnectParticipantStartAttachmentUploadRequest *)request completionHandler: (void (^_Nullable)( AWSConnectParticipantStartAttachmentUploadResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func startAttachmentUpload(_ request: AWSConnectParticipantStartAttachmentUploadRequest) async throws -> AWSConnectParticipantStartAttachmentUploadResponseParameters
requestA container for the necessary parameters to execute the StartAttachmentUpload service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. On failed execution,errormay contain anNSErrorwithAWSConnectParticipantErrorDomaindomain and the following error code:AWSConnectParticipantErrorAccessDenied,AWSConnectParticipantErrorInternalServer,AWSConnectParticipantErrorThrottling,AWSConnectParticipantErrorValidation,AWSConnectParticipantErrorServiceQuotaExceeded.
View on GitHub
Install in Dash
AWSConnectParticipant Class Reference