:doc:`OpenSearchService <../../opensearch>` / Client / list_data_sources

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



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

  

  Lists direct-query data sources for a specific domain. For more information, see For more information, see `Working with Amazon OpenSearch Service direct queries with Amazon S3 <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/ListDataSources>`_  


  **Request Syntax**
  ::

    response = client.list_data_sources(
        DomainName='string'
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The name of the domain.

    

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

    
    ::

      {
          'DataSources': [
              {
                  'DataSourceType': {
                      'S3GlueDataCatalog': {
                          'RoleArn': 'string'
                      }
                  },
                  'Name': 'string',
                  'Description': 'string',
                  'Status': 'ACTIVE'|'DISABLED'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a ``ListDataSources`` operation.

      
      

      - **DataSources** *(list) --* 

        A list of data sources associated with specified domain.

        
        

        - *(dict) --* 

          Details about a direct-query data source.

          
          

          - **DataSourceType** *(dict) --* 

            The type of data source.

            .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``S3GlueDataCatalog``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                        'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


          
            

            - **S3GlueDataCatalog** *(dict) --* 

              An Amazon S3 data source.

              
              

              - **RoleArn** *(string) --* 

                >The Amazon Resource Name (ARN) for the S3 Glue Data Catalog.

                
          
        
          

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

            The name of the data source.

            
          

          - **Description** *(string) --* 

            A description of the data source.

            
          

          - **Status** *(string) --* 

            The status of the data source.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`OpenSearchService.Client.exceptions.BaseException`

  
  *   :py:class:`OpenSearchService.Client.exceptions.InternalException`

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

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

  
  *   :py:class:`OpenSearchService.Client.exceptions.DisabledOperationException`

  
  *   :py:class:`OpenSearchService.Client.exceptions.DependencyFailureException`

  