:doc:`AgentsforBedrock <../../bedrock-agent>` / Client / list_data_sources

*****************
list_data_sources
*****************



.. py:method:: AgentsforBedrock.Client.list_data_sources(**kwargs)

  

  Lists the data sources in a knowledge base and information about each one.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/ListDataSources>`_  


  **Request Syntax**
  ::

    response = client.list_data_sources(
        knowledgeBaseId='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type knowledgeBaseId: string
  :param knowledgeBaseId: **[REQUIRED]** 

    The unique identifier of the knowledge base for which to return a list of information.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the ``nextToken`` field when making another request to return the next batch of results.

    

  
  :type nextToken: string
  :param nextToken: 

    If the total number of results is greater than the ``maxResults`` value provided in the request, enter the token returned in the ``nextToken`` field in the response in this field to return the next batch of results.

    

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

    
    ::

      {
          'dataSourceSummaries': [
              {
                  'knowledgeBaseId': 'string',
                  'dataSourceId': 'string',
                  'name': 'string',
                  'status': 'AVAILABLE'|'DELETING'|'DELETE_UNSUCCESSFUL',
                  'description': 'string',
                  'updatedAt': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **dataSourceSummaries** *(list) --* 

        A list of objects, each of which contains information about a data source.

        
        

        - *(dict) --* 

          Contains details about a data source.

          
          

          - **knowledgeBaseId** *(string) --* 

            The unique identifier of the knowledge base to which the data source belongs.

            
          

          - **dataSourceId** *(string) --* 

            The unique identifier of the data source.

            
          

          - **name** *(string) --* 

            The name of the data source.

            
          

          - **status** *(string) --* 

            The status of the data source.

            
          

          - **description** *(string) --* 

            The description of the data source.

            
          

          - **updatedAt** *(datetime) --* 

            The time at which the data source was last updated.

            
      
    
      

      - **nextToken** *(string) --* 

        If the total number of results is greater than the ``maxResults`` value provided in the request, use this token when making another request in the ``nextToken`` field to return the next batch of results.

        
  
  **Exceptions**
  
  *   :py:class:`AgentsforBedrock.Client.exceptions.ThrottlingException`

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

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

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

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

  