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'
)
[REQUIRED]
The S3 bucket where the import file is located. The bucket name is required to begin with migrationhub-strategy-
.
Groups the resources in the import file together with a unique name. This ID can be as filter in ListApplicationComponents
and ListServers
.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
[REQUIRED]
A descriptive name for the request.
[REQUIRED]
The Amazon S3 key name of the import file.
dict
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