:doc:`DataExchange <../../dataexchange>` / Client / list_received_data_grants

*************************
list_received_data_grants
*************************



.. py:method:: DataExchange.Client.list_received_data_grants(**kwargs)

  

  This operation returns information about all received data grants.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListReceivedDataGrants>`_  


  **Request Syntax**
  ::

    response = client.list_received_data_grants(
        MaxResults=123,
        NextToken='string',
        AcceptanceState=[
            'PENDING_RECEIVER_ACCEPTANCE'|'ACCEPTED',
        ]
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to be included in the next page.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token used to retrieve the next page of results for this operation.

    

  
  :type AcceptanceState: list
  :param AcceptanceState: 

    The acceptance state of the data grants to list.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'DataGrantSummaries': [
              {
                  'Name': 'string',
                  'SenderPrincipal': 'string',
                  'ReceiverPrincipal': 'string',
                  'AcceptanceState': 'PENDING_RECEIVER_ACCEPTANCE'|'ACCEPTED',
                  'AcceptedAt': datetime(2015, 1, 1),
                  'EndsAt': datetime(2015, 1, 1),
                  'DataSetId': 'string',
                  'Id': 'string',
                  'Arn': 'string',
                  'CreatedAt': datetime(2015, 1, 1),
                  'UpdatedAt': datetime(2015, 1, 1)
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DataGrantSummaries** *(list) --* 

        An object that contains a list of received data grant information.

        
        

        - *(dict) --* 

          Information about a received data grant.

          
          

          - **Name** *(string) --* 

            The name of the data grant.

            
          

          - **SenderPrincipal** *(string) --* 

            The Amazon Web Services account ID of the data grant sender.

            
          

          - **ReceiverPrincipal** *(string) --* 

            The Amazon Web Services account ID of the data grant receiver.

            
          

          - **AcceptanceState** *(string) --* 

            The acceptance state of the data grant.

            
          

          - **AcceptedAt** *(datetime) --* 

            The timestamp of when the data grant was accepted.

            
          

          - **EndsAt** *(datetime) --* 

            The timestamp of when access to the associated data set ends.

            
          

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

            The ID of the data set associated to the data grant.

            
          

          - **Id** *(string) --* 

            The ID of the data grant.

            
          

          - **Arn** *(string) --* 

            The Amazon Resource Name (ARN) of the data grant.

            
          

          - **CreatedAt** *(datetime) --* 

            The timestamp of when the data grant was created.

            
          

          - **UpdatedAt** *(datetime) --* 

            The timestamp of when the data grant was last updated.

            
      
    
      

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

        The pagination token used to retrieve the next page of results for this operation.

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

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

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

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

  
  *   :py:class:`DataExchange.Client.exceptions.InternalServerException`

  