:doc:`MigrationHubStrategyRecommendations <../../migrationhubstrategy>` / Client / start_assessment

****************
start_assessment
****************



.. py:method:: MigrationHubStrategyRecommendations.Client.start_assessment(**kwargs)

  

  Starts the assessment of an on-premises environment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/StartAssessment>`_  


  **Request Syntax**
  ::

    response = client.start_assessment(
        assessmentDataSourceType='StrategyRecommendationsApplicationDataCollector'|'ManualImport'|'ApplicationDiscoveryService',
        assessmentTargets=[
            {
                'condition': 'EQUALS'|'NOT_EQUALS'|'CONTAINS'|'NOT_CONTAINS',
                'name': 'string',
                'values': [
                    'string',
                ]
            },
        ],
        s3bucketForAnalysisData='string',
        s3bucketForReportData='string'
    )
    
  :type assessmentDataSourceType: string
  :param assessmentDataSourceType: 

    The data source type of an assessment to be started.

    

  
  :type assessmentTargets: list
  :param assessmentTargets: 

    List of criteria for assessment.

    

  
    - *(dict) --* 

      Defines the criteria of assessment.

      

    
      - **condition** *(string) --* **[REQUIRED]** 

        Condition of an assessment.

        

      
      - **name** *(string) --* **[REQUIRED]** 

        Name of an assessment.

        

      
      - **values** *(list) --* **[REQUIRED]** 

        Values of an assessment.

        

      
        - *(string) --* 

        
    
    

  :type s3bucketForAnalysisData: string
  :param s3bucketForAnalysisData: 

    The S3 bucket used by the collectors to send analysis data to the service. The bucket name must begin with ``migrationhub-strategy-``.

    

  
  :type s3bucketForReportData: string
  :param s3bucketForReportData: 

    The S3 bucket where all the reports generated by the service are stored. The bucket name must begin with ``migrationhub-strategy-``.

    

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

    
    ::

      {
          'assessmentId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **assessmentId** *(string) --* 

        The ID of the assessment.

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

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

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

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

  