:doc:`MigrationHub <../../mgh>` / Client / list_discovered_resources

*************************
list_discovered_resources
*************************



.. py:method:: MigrationHub.Client.list_discovered_resources(**kwargs)

  

  Lists discovered resources associated with the given ``MigrationTask``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListDiscoveredResources>`_  


  **Request Syntax**
  ::

    response = client.list_discovered_resources(
        ProgressUpdateStream='string',
        MigrationTaskName='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type ProgressUpdateStream: string
  :param ProgressUpdateStream: **[REQUIRED]** 

    The name of the ProgressUpdateStream.

    

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

    The name of the MigrationTask. *Do not store personal data in this field.*

    

  
  :type NextToken: string
  :param NextToken: 

    If a ``NextToken`` was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in ``NextToken``.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results returned per page.

    

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

    
    ::

      {
          'NextToken': 'string',
          'DiscoveredResourceList': [
              {
                  'ConfigurationId': 'string',
                  'Description': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        If there are more discovered resources than the max result, return the next token to be passed to the next call as a bookmark of where to start from.

        
      

      - **DiscoveredResourceList** *(list) --* 

        Returned list of discovered resources associated with the given MigrationTask.

        
        

        - *(dict) --* 

          Object representing the on-premises resource being migrated.

          
          

          - **ConfigurationId** *(string) --* 

            The configurationId in Application Discovery Service that uniquely identifies the on-premise resource.

            
          

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

            A description that can be free-form text to record additional detail about the discovered resource for clarity or later reference.

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

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

  
  *   :py:class:`MigrationHub.Client.exceptions.InternalServerError`

  
  *   :py:class:`MigrationHub.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`MigrationHub.Client.exceptions.InvalidInputException`

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

  
  *   :py:class:`MigrationHub.Client.exceptions.HomeRegionNotSetException`

  