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

**********************
start_import_file_task
**********************



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

  

  Starts a file import.

  

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


  **Request Syntax**
  ::

    response = client.start_import_file_task(
        S3Bucket='string',
        dataSourceType='ApplicationDiscoveryService'|'MPA'|'Import'|'StrategyRecommendationsApplicationDataCollector',
        groupId=[
            {
                'name': 'ExternalId'|'ExternalSourceType',
                'value': 'string'
            },
        ],
        name='string',
        s3bucketForReportData='string',
        s3key='string'
    )
    
  :type S3Bucket: string
  :param S3Bucket: **[REQUIRED]** 

    The S3 bucket where the import file is located. The bucket name is required to begin with ``migrationhub-strategy-``.

    

  
  :type dataSourceType: string
  :param dataSourceType: 

    Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the servers specified in the import file are available in AWS Application Discovery Service.

    

  
  :type groupId: list
  :param groupId: 

    Groups the resources in the import file together with a unique name. This ID can be as filter in ``ListApplicationComponents`` and ``ListServers``.

    

  
    - *(dict) --* 

      The object containing information about distinct imports or groups for Strategy Recommendations.

      

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

        The key of the specific import group.

        

      
      - **value** *(string) --* 

        The value of the specific import group.

        

      
    

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

    A descriptive name for the request.

    

  
  :type s3bucketForReportData: string
  :param s3bucketForReportData: 

    The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with migrationhub-strategy-.

    

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

    The Amazon S3 key name of the import file.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID for a specific import task. The ID is unique within an AWS account.

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

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

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

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

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

  