:doc:`Detective <../../detective>` / Client / batch_get_graph_member_datasources

**********************************
batch_get_graph_member_datasources
**********************************



.. py:method:: Detective.Client.batch_get_graph_member_datasources(**kwargs)

  

  Gets data source package information for the behavior graph.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/BatchGetGraphMemberDatasources>`_  


  **Request Syntax**
  ::

    response = client.batch_get_graph_member_datasources(
        GraphArn='string',
        AccountIds=[
            'string',
        ]
    )
    
  :type GraphArn: string
  :param GraphArn: **[REQUIRED]** 

    The ARN of the behavior graph.

    

  
  :type AccountIds: list
  :param AccountIds: **[REQUIRED]** 

    The list of Amazon Web Services accounts to get data source package information on.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'MemberDatasources': [
              {
                  'AccountId': 'string',
                  'GraphArn': 'string',
                  'DatasourcePackageIngestHistory': {
                      'string': {
                          'string': {
                              'Timestamp': datetime(2015, 1, 1)
                          }
                      }
                  }
              },
          ],
          'UnprocessedAccounts': [
              {
                  'AccountId': 'string',
                  'Reason': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **MemberDatasources** *(list) --* 

        Details on the status of data source packages for members of the behavior graph.

        
        

        - *(dict) --* 

          Details on data source packages for members of the behavior graph.

          
          

          - **AccountId** *(string) --* 

            The account identifier of the Amazon Web Services account.

            
          

          - **GraphArn** *(string) --* 

            The ARN of the organization behavior graph.

            
          

          - **DatasourcePackageIngestHistory** *(dict) --* 

            Details on when a data source package was added to a behavior graph.

            
            

            - *(string) --* 
              

              - *(dict) --* 
                

                - *(string) --* 
                  

                  - *(dict) --* 

                    Details on when data collection began for a source package.

                    
                    

                    - **Timestamp** *(datetime) --* 

                      The data and time when data collection began for a source package. The value is an ISO8601 formatted string. For example, ``2021-08-18T16:35:56.284Z``.

                      
                
            
          
        
      
      
    
      

      - **UnprocessedAccounts** *(list) --* 

        Accounts that data source package information could not be retrieved for.

        
        

        - *(dict) --* 

          A member account that was included in a request but for which the request could not be processed.

          
          

          - **AccountId** *(string) --* 

            The Amazon Web Services account identifier of the member account that was not processed.

            
          

          - **Reason** *(string) --* 

            The reason that the member account request could not be processed.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Detective.Client.exceptions.AccessDeniedException`

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

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

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

  