update_participant_role_config

Connect.Client.update_participant_role_config(**kwargs)

Updates timeouts for when human chat participants are to be considered idle, and when agents are automatically disconnected from a chat due to idleness. You can set four timers:

  • Customer idle timeout
  • Customer auto-disconnect timeout
  • Agent idle timeout
  • Agent auto-disconnect timeout

For more information about how chat timeouts work, see Set up chat timeouts for human participants.

See also: AWS API Documentation

Request Syntax

response = client.update_participant_role_config(
    InstanceId='string',
    ContactId='string',
    ChannelConfiguration={
        'Chat': {
            'ParticipantTimerConfigList': [
                {
                    'ParticipantRole': 'CUSTOMER'|'AGENT',
                    'TimerType': 'IDLE'|'DISCONNECT_NONCUSTOMER',
                    'TimerValue': {
                        'ParticipantTimerAction': 'Unset',
                        'ParticipantTimerDurationInMinutes': 123
                    }
                },
            ]
        }
    }
)
Parameters
  • InstanceId (string) --

    [REQUIRED]

    The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • ContactId (string) --

    [REQUIRED]

    The identifier of the contact in this instance of Amazon Connect.

  • ChannelConfiguration (dict) --

    [REQUIRED]

    The Amazon Connect channel you want to configure.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: Chat.

    • Chat (dict) --

      Configuration information for the chat participant role.

      • ParticipantTimerConfigList (list) -- [REQUIRED]

        A list of participant timers. You can specify any unique combination of role and timer type. Duplicate entries error out the request with a 400.

        • (dict) --

          Configuration information for the timer. After the timer configuration is set, it persists for the duration of the chat. It persists across new contacts in the chain, for example, transfer contacts.

          For more information about how chat timeouts work, see Set up chat timeouts for human participants.

          • ParticipantRole (string) -- [REQUIRED]

            The role of the participant in the chat conversation.

          • TimerType (string) -- [REQUIRED]

            The type of timer. IDLE indicates the timer applies for considering a human chat participant as idle. DISCONNECT_NONCUSTOMER indicates the timer applies to automatically disconnecting a chat participant due to idleness.

          • TimerValue (dict) -- [REQUIRED]

            The value of the timer. Either the timer action (Unset to delete the timer), or the duration of the timer in minutes. Only one value can be set.

            Note

            This is a Tagged Union structure. Only one of the following top level keys can be set: ParticipantTimerAction, ParticipantTimerDurationInMinutes.

            • ParticipantTimerAction (string) --

              The timer action. Currently only one value is allowed: Unset . It deletes a timer.

            • ParticipantTimerDurationInMinutes (integer) --

              The duration of a timer, in minutes.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • Connect.Client.exceptions.InvalidRequestException
  • Connect.Client.exceptions.InvalidParameterException
  • Connect.Client.exceptions.ResourceNotFoundException
  • Connect.Client.exceptions.AccessDeniedException
  • Connect.Client.exceptions.ThrottlingException
  • Connect.Client.exceptions.InternalServiceException