:doc:`ConnectCases <../../connectcases>` / Client / list_cases_for_contact

**********************
list_cases_for_contact
**********************



.. py:method:: ConnectCases.Client.list_cases_for_contact(**kwargs)

  

  Lists cases for a given contact.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/ListCasesForContact>`_  


  **Request Syntax**
  ::

    response = client.list_cases_for_contact(
        domainId='string',
        contactArn='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type domainId: string
  :param domainId: **[REQUIRED]** 

    The unique identifier of the Cases domain.

    

  
  :type contactArn: string
  :param contactArn: **[REQUIRED]** 

    A unique identifier of a contact in Amazon Connect.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return per page.

    

  
  :type nextToken: string
  :param nextToken: 

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    

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

    
    ::

      {
          'cases': [
              {
                  'caseId': 'string',
                  'templateId': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **cases** *(list) --* 

        A list of Case summary information.

        
        

        - *(dict) --* 

          Case summary information.

          
          

          - **caseId** *(string) --* 

            A unique identifier of the case.

            
          

          - **templateId** *(string) --* 

            A unique identifier of a template.

            
      
    
      

      - **nextToken** *(string) --* 

        The token for the next set of results. This is null if there are no more results to return.

        
  
  **Exceptions**
  
  *   :py:class:`ConnectCases.Client.exceptions.InternalServerException`

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

  
  *   :py:class:`ConnectCases.Client.exceptions.ValidationException`

  
  *   :py:class:`ConnectCases.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ConnectCases.Client.exceptions.AccessDeniedException`

  