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

************************
list_datasource_packages
************************



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

  

  Lists data source packages in the behavior graph.

  

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


  **Request Syntax**
  ::

    response = client.list_datasource_packages(
        GraphArn='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type GraphArn: string
  :param GraphArn: **[REQUIRED]** 

    The ARN of the behavior graph.

    

  
  :type NextToken: string
  :param NextToken: 

    For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return.

    

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

    
    ::

      {
          'DatasourcePackages': {
              'string': {
                  'DatasourcePackageIngestState': 'STARTED'|'STOPPED'|'DISABLED',
                  'LastIngestStateChange': {
                      'string': {
                          'Timestamp': datetime(2015, 1, 1)
                      }
                  }
              }
          },
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DatasourcePackages** *(dict) --* 

        Details on the data source packages active in the behavior graph.

        
        

        - *(string) --* 
          

          - *(dict) --* 

            Details about the data source packages ingested by your behavior graph.

            
            

            - **DatasourcePackageIngestState** *(string) --* 

              Details on which data source packages are ingested for a member account.

              
            

            - **LastIngestStateChange** *(dict) --* 

              The date a data source package was enabled for this account

              
              

              - *(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``.

                    
              
          
        
        
    
  
      

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

        For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

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

  