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

**************
list_use_cases
**************



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

  

  Lists the use cases for the integration association.

  

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


  **Request Syntax**
  ::

    response = client.list_use_cases(
        InstanceId='string',
        IntegrationAssociationId='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type InstanceId: string
  :param InstanceId: **[REQUIRED]** 

    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 IntegrationAssociationId: string
  :param IntegrationAssociationId: **[REQUIRED]** 

    The identifier for the integration association.

    

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

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return per page.

    

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

    
    ::

      {
          'UseCaseSummaryList': [
              {
                  'UseCaseId': 'string',
                  'UseCaseArn': 'string',
                  'UseCaseType': 'RULES_EVALUATION'|'CONNECT_CAMPAIGNS'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **UseCaseSummaryList** *(list) --* 

        The use cases.

        
        

        - *(dict) --* 

          Contains the use case.

          
          

          - **UseCaseId** *(string) --* 

            The identifier for the use case.

            
          

          - **UseCaseArn** *(string) --* 

            The Amazon Resource Name (ARN) for the use case.

            
          

          - **UseCaseType** *(string) --* 

            The type of use case to associate to the integration association. Each integration association can have only one of each use case type.

            
      
    
      

      - **NextToken** *(string) --* 

        If there are additional results, this is the token for the next set of results.

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

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

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

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

  