MigrationHubStrategyRecommendations / Client / start_import_file_task

start_import_file_task#

MigrationHubStrategyRecommendations.Client.start_import_file_task(**kwargs)#

Starts a file import.

See also: AWS API Documentation

Request Syntax

response = client.start_import_file_task(
    S3Bucket='string',
    dataSourceType='ApplicationDiscoveryService'|'MPA'|'Import',
    groupId=[
        {
            'name': 'ExternalId'|'ExternalSourceType',
            'value': 'string'
        },
    ],
    name='string',
    s3bucketForReportData='string',
    s3key='string'
)
Parameters:
  • S3Bucket (string) –

    [REQUIRED]

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

  • dataSourceType (string) – 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.

  • groupId (list) –

    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.

  • name (string) –

    [REQUIRED]

    A descriptive name for the request.

  • s3bucketForReportData (string) – The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with migrationhub-strategy-.

  • s3key (string) –

    [REQUIRED]

    The Amazon S3 key name of the import file.

Return type:

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

  • MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException

  • MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException

  • MigrationHubStrategyRecommendations.Client.exceptions.ServiceQuotaExceededException

  • MigrationHubStrategyRecommendations.Client.exceptions.ValidationException

  • MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException