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 defaultServiceConfiguration from [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`() -> Self

    Return 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

    configuration

    A service configuration object.

    key

    A 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

    key

    A 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

    key

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

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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

    request

    A container for the necessary parameters to execute the CompleteAttachmentUpload service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantCompleteAttachmentUploadResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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;

    Parameters

    request

    A container for the necessary parameters to execute the CompleteAttachmentUpload service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation, AWSConnectParticipantErrorServiceQuotaExceeded, AWSConnectParticipantErrorConflict.

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

    See

    AWSConnectParticipantCreateParticipantConnectionRequest

    See

    AWSConnectParticipantCreateParticipantConnectionResponse

    Declaration

    Objective-C

    - (id)createParticipantConnection:
        (nonnull AWSConnectParticipantCreateParticipantConnectionRequest *)request;

    Swift

    func createParticipantConnection(_ request: AWSConnectParticipantCreateParticipantConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateParticipantConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantCreateParticipantConnectionResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation.

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

    See

    AWSConnectParticipantCreateParticipantConnectionRequest

    See

    AWSConnectParticipantCreateParticipantConnectionResponse

    Declaration

    Objective-C

    - (void)
        createParticipantConnection:
            (nonnull AWSConnectParticipantCreateParticipantConnectionRequest *)
                request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSConnectParticipantCreateParticipantConnectionResponse
                              *_Nullable,
                          NSError *_Nullable))completionHandler;

    Parameters

    request

    A container for the necessary parameters to execute the CreateParticipantConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain 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

    request

    A container for the necessary parameters to execute the DescribeView service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantDescribeViewResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain 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 -> AWSConnectParticipantDescribeViewResponse

    Parameters

    request

    A container for the necessary parameters to execute the DescribeView service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorResourceNotFound, AWSConnectParticipantErrorValidation.

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

    See

    AWSConnectParticipantDisconnectParticipantRequest

    See

    AWSConnectParticipantDisconnectParticipantResponse

    Declaration

    Objective-C

    - (id)disconnectParticipant:
        (nonnull AWSConnectParticipantDisconnectParticipantRequest *)request;

    Swift

    func disconnectParticipant(_ request: AWSConnectParticipantDisconnectParticipantRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisconnectParticipant service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantDisconnectParticipantResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation.

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

    See

    AWSConnectParticipantDisconnectParticipantRequest

    See

    AWSConnectParticipantDisconnectParticipantResponse

    Declaration

    Objective-C

    - (void)
        disconnectParticipant:
            (nonnull AWSConnectParticipantDisconnectParticipantRequest *)request
            completionHandler:
                (void (^_Nullable)(
                    AWSConnectParticipantDisconnectParticipantResponse *_Nullable,
                    NSError *_Nullable))completionHandler;

    Parameters

    request

    A container for the necessary parameters to execute the DisconnectParticipant service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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

    request

    A container for the necessary parameters to execute the GetAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantGetAttachmentResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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;

    Parameters

    request

    A container for the necessary parameters to execute the GetAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.left

    • application/vnd.amazonaws.connect.event.participant.joined

    • application/vnd.amazonaws.connect.event.chat.ended

    • application/vnd.amazonaws.connect.event.transfer.succeeded

    • application/vnd.amazonaws.connect.event.transfer.failed

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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

    request

    A container for the necessary parameters to execute the GetTranscript service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantGetTranscriptResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.left

    • application/vnd.amazonaws.connect.event.participant.joined

    • application/vnd.amazonaws.connect.event.chat.ended

    • application/vnd.amazonaws.connect.event.transfer.succeeded

    • application/vnd.amazonaws.connect.event.transfer.failed

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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;

    Parameters

    request

    A container for the necessary parameters to execute the GetTranscript service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation.

  • The application/vnd.amazonaws.connect.event.connection.acknowledged ContentType will no longer be supported starting December 31, 2024. This event has been migrated to the CreateParticipantConnection API using the ConnectParticipant field.

    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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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

    request

    A container for the necessary parameters to execute the SendEvent service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantSendEventResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation, AWSConnectParticipantErrorConflict.

  • The application/vnd.amazonaws.connect.event.connection.acknowledged ContentType will no longer be supported starting December 31, 2024. This event has been migrated to the CreateParticipantConnection API using the ConnectParticipant field.

    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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

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

    Parameters

    request

    A container for the necessary parameters to execute the SendEvent service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation, AWSConnectParticipantErrorConflict.

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

    See

    AWSConnectParticipantSendMessageRequest

    See

    AWSConnectParticipantSendMessageResponse

    Declaration

    Objective-C

    - (id)sendMessage:(nonnull AWSConnectParticipantSendMessageRequest *)request;

    Swift

    func sendMessage(_ request: AWSConnectParticipantSendMessageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SendMessage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantSendMessageResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation.

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

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

    Parameters

    request

    A container for the necessary parameters to execute the SendMessage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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

    request

    A container for the necessary parameters to execute the StartAttachmentUpload service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSConnectParticipantStartAttachmentUploadResponse. On failed execution, task.error may contain an NSError with AWSConnectParticipantErrorDomain domain 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.

    ConnectionToken is used for invoking this API instead of ParticipantToken.

    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;

    Parameters

    request

    A container for the necessary parameters to execute the StartAttachmentUpload service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful. On failed execution, error may contain an NSError with AWSConnectParticipantErrorDomain domain and the following error code: AWSConnectParticipantErrorAccessDenied, AWSConnectParticipantErrorInternalServer, AWSConnectParticipantErrorThrottling, AWSConnectParticipantErrorValidation, AWSConnectParticipantErrorServiceQuotaExceeded.