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

********************************
list_analytics_data_associations
********************************



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

  

  Lists the association status of requested dataset ID for a given Amazon Connect instance.

  

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


  **Request Syntax**
  ::

    response = client.list_analytics_data_associations(
        InstanceId='string',
        DataSetId='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 DataSetId: string
  :param DataSetId: 

    The identifier of the dataset to get the association status.

    

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

    
    ::

      {
          'Results': [
              {
                  'DataSetId': 'string',
                  'TargetAccountId': 'string',
                  'ResourceShareId': 'string',
                  'ResourceShareArn': 'string',
                  'ResourceShareStatus': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Results** *(list) --* 

        An array of successful results: ``DataSetId``, ``TargetAccountId``, ``ResourceShareId``, ``ResourceShareArn``. This is a paginated API, so ``nextToken`` is given if there are more results to be returned.

        
        

        - *(dict) --* 

          This API is in preview release for Amazon Connect and is subject to change.

           

          Information about associations that are successfully created: ``DataSetId``, ``TargetAccountId``, ``ResourceShareId``, ``ResourceShareArn``.

          
          

          - **DataSetId** *(string) --* 

            The identifier of the dataset.

            
          

          - **TargetAccountId** *(string) --* 

            The identifier of the target account.

            
          

          - **ResourceShareId** *(string) --* 

            The Resource Access Manager share ID.

            
          

          - **ResourceShareArn** *(string) --* 

            The Amazon Resource Name (ARN) of the Resource Access Manager share.

            
          

          - **ResourceShareStatus** *(string) --* 

            The Amazon Web Services Resource Access Manager status of association.

            
      
    
      

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

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

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

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

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

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

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

  