:doc:`Connect <../../connect>` / Client / start_contact_media_processing

******************************
start_contact_media_processing
******************************



.. py:method:: Connect.Client.start_contact_media_processing(**kwargs)

  

  Enables in-flight message processing for an ongoing chat session. Message processing will stay active for the rest of the chat, even if an individual contact segment ends.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartContactMediaProcessing>`_  


  **Request Syntax**
  ::

    response = client.start_contact_media_processing(
        InstanceId='string',
        ContactId='string',
        ProcessorArn='string',
        FailureMode='DELIVER_UNPROCESSED_MESSAGE'|'DO_NOT_DELIVER_UNPROCESSED_MESSAGE'
    )
    
  :type InstanceId: string
  :param InstanceId: 

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  :type ContactId: string
  :param ContactId: 

    The identifier of the contact.

    

  
  :type ProcessorArn: string
  :param ProcessorArn: 

    The Amazon Resource Name (ARN) of the Lambda processor. You can find the Amazon Resource Name of the lambda in the lambda console.

    

  
  :type FailureMode: string
  :param FailureMode: 

    The desired behavior for failed message processing.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Connect.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Connect.Client.exceptions.LimitExceededException`

  
  *   :py:class:`Connect.Client.exceptions.ServiceQuotaExceededException`

  