:doc:`DataZone <../../datazone>` / Client / list_data_sources

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



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

  

  Lists data sources in Amazon DataZone.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/ListDataSources>`_  


  **Request Syntax**
  ::

    response = client.list_data_sources(
        domainIdentifier='string',
        projectIdentifier='string',
        environmentIdentifier='string',
        connectionIdentifier='string',
        type='string',
        status='CREATING'|'FAILED_CREATION'|'READY'|'UPDATING'|'FAILED_UPDATE'|'RUNNING'|'DELETING'|'FAILED_DELETION',
        name='string',
        nextToken='string',
        maxResults=123
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The identifier of the Amazon DataZone domain in which to list the data sources.

    

  
  :type projectIdentifier: string
  :param projectIdentifier: **[REQUIRED]** 

    The identifier of the project in which to list data sources.

    

  
  :type environmentIdentifier: string
  :param environmentIdentifier: 

    The identifier of the environment in which to list the data sources.

    

  
  :type connectionIdentifier: string
  :param connectionIdentifier: 

    The ID of the connection.

    

  
  :type type: string
  :param type: 

    The type of the data source.

    

  
  :type status: string
  :param status: 

    The status of the data source.

    

  
  :type name: string
  :param name: 

    The name of the data source.

    

  
  :type nextToken: string
  :param nextToken: 

    When the number of data sources is greater than the default value for the ``MaxResults`` parameter, or if you explicitly specify a value for ``MaxResults`` that is less than the number of data sources, the response includes a pagination token named ``NextToken``. You can specify this ``NextToken`` value in a subsequent call to ``ListDataSources`` to list the next set of data sources.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of data sources to return in a single call to ``ListDataSources``. When the number of data sources to be listed is greater than the value of ``MaxResults``, the response contains a ``NextToken`` value that you can use in a subsequent call to ``ListDataSources`` to list the next set of data sources.

    

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

    
    ::

      {
          'items': [
              {
                  'domainId': 'string',
                  'environmentId': 'string',
                  'connectionId': 'string',
                  'dataSourceId': 'string',
                  'name': 'string',
                  'type': 'string',
                  'status': 'CREATING'|'FAILED_CREATION'|'READY'|'UPDATING'|'FAILED_UPDATE'|'RUNNING'|'DELETING'|'FAILED_DELETION',
                  'enableSetting': 'ENABLED'|'DISABLED',
                  'schedule': {
                      'timezone': 'UTC'|'AFRICA_JOHANNESBURG'|'AMERICA_MONTREAL'|'AMERICA_SAO_PAULO'|'ASIA_BAHRAIN'|'ASIA_BANGKOK'|'ASIA_CALCUTTA'|'ASIA_DUBAI'|'ASIA_HONG_KONG'|'ASIA_JAKARTA'|'ASIA_KUALA_LUMPUR'|'ASIA_SEOUL'|'ASIA_SHANGHAI'|'ASIA_SINGAPORE'|'ASIA_TAIPEI'|'ASIA_TOKYO'|'AUSTRALIA_MELBOURNE'|'AUSTRALIA_SYDNEY'|'CANADA_CENTRAL'|'CET'|'CST6CDT'|'ETC_GMT'|'ETC_GMT0'|'ETC_GMT_ADD_0'|'ETC_GMT_ADD_1'|'ETC_GMT_ADD_10'|'ETC_GMT_ADD_11'|'ETC_GMT_ADD_12'|'ETC_GMT_ADD_2'|'ETC_GMT_ADD_3'|'ETC_GMT_ADD_4'|'ETC_GMT_ADD_5'|'ETC_GMT_ADD_6'|'ETC_GMT_ADD_7'|'ETC_GMT_ADD_8'|'ETC_GMT_ADD_9'|'ETC_GMT_NEG_0'|'ETC_GMT_NEG_1'|'ETC_GMT_NEG_10'|'ETC_GMT_NEG_11'|'ETC_GMT_NEG_12'|'ETC_GMT_NEG_13'|'ETC_GMT_NEG_14'|'ETC_GMT_NEG_2'|'ETC_GMT_NEG_3'|'ETC_GMT_NEG_4'|'ETC_GMT_NEG_5'|'ETC_GMT_NEG_6'|'ETC_GMT_NEG_7'|'ETC_GMT_NEG_8'|'ETC_GMT_NEG_9'|'EUROPE_DUBLIN'|'EUROPE_LONDON'|'EUROPE_PARIS'|'EUROPE_STOCKHOLM'|'EUROPE_ZURICH'|'ISRAEL'|'MEXICO_GENERAL'|'MST7MDT'|'PACIFIC_AUCKLAND'|'US_CENTRAL'|'US_EASTERN'|'US_MOUNTAIN'|'US_PACIFIC',
                      'schedule': 'string'
                  },
                  'lastRunStatus': 'REQUESTED'|'RUNNING'|'FAILED'|'PARTIALLY_SUCCEEDED'|'SUCCESS',
                  'lastRunAt': datetime(2015, 1, 1),
                  'lastRunErrorMessage': {
                      'errorType': 'ACCESS_DENIED_EXCEPTION'|'CONFLICT_EXCEPTION'|'INTERNAL_SERVER_EXCEPTION'|'RESOURCE_NOT_FOUND_EXCEPTION'|'SERVICE_QUOTA_EXCEEDED_EXCEPTION'|'THROTTLING_EXCEPTION'|'VALIDATION_EXCEPTION',
                      'errorDetail': 'string'
                  },
                  'lastRunAssetCount': 123,
                  'createdAt': datetime(2015, 1, 1),
                  'updatedAt': datetime(2015, 1, 1),
                  'description': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        The results of the ``ListDataSources`` action.

        
        

        - *(dict) --* 

          The details of the data source.

          
          

          - **domainId** *(string) --* 

            The ID of the Amazon DataZone domain in which the data source exists.

            
          

          - **environmentId** *(string) --* 

            The ID of the environment in which the data source exists.

            
          

          - **connectionId** *(string) --* 

            The connection ID that's part of the data source summary.

            
          

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

            The ID of the data source.

            
          

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

            The name of the data source.

            
          

          - **type** *(string) --* 

            The type of the data source.

            
          

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

            The status of the data source.

            
          

          - **enableSetting** *(string) --* 

            Specifies whether the data source is enabled.

            
          

          - **schedule** *(dict) --* 

            The details of the schedule of the data source runs.

            
            

            - **timezone** *(string) --* 

              The timezone of the data source run.

              
            

            - **schedule** *(string) --* 

              The schedule of the data source runs.

              
        
          

          - **lastRunStatus** *(string) --* 

            The status of the last data source run.

            
          

          - **lastRunAt** *(datetime) --* 

            The timestamp of when the data source run was last performed.

            
          

          - **lastRunErrorMessage** *(dict) --* 

            The details of the error message that is returned if the operation cannot be successfully completed.

            
            

            - **errorType** *(string) --* 

              The type of the error message that is returned if the operation cannot be successfully completed.

              
            

            - **errorDetail** *(string) --* 

              The details of the error message that is returned if the operation cannot be successfully completed.

              
        
          

          - **lastRunAssetCount** *(integer) --* 

            The count of the assets created during the last data source run.

            
          

          - **createdAt** *(datetime) --* 

            The timestamp of when the data source was created.

            
          

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

            The timestamp of when the data source was updated.

            
          

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

            The data source description.

            
      
    
      

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

        When the number of data sources is greater than the default value for the ``MaxResults`` parameter, or if you explicitly specify a value for ``MaxResults`` that is less than the number of data sources, the response includes a pagination token named ``NextToken``. You can specify this ``NextToken`` value in a subsequent call to ``ListDataSources`` to list the next set of data sources.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`DataZone.Client.exceptions.ConflictException`

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  