start_import_file_task
async
¶
start_import_file_task(
name: String,
s3_bucket: importS3Bucket,
s3key: String,
*,
config_overrides: Optional[AsyncMigrationHubStrategyClientConfig] = None,
data_source_type: Optional[DataSourceType] = None,
group_id: Optional[GroupIds] = None,
s3bucket_for_report_data: Optional[String] = None,
) -> StartImportFileTaskResponse
Starts a file import.
Parameters:
-
name(String) –A descriptive name for the request.
-
s3_bucket(importS3Bucket) –The S3 bucket where the import file is located. The bucket name is required to begin with
migrationhub-strategy-. -
s3key(String) –The Amazon S3 key name of the import file.
-
data_source_type(Optional[DataSourceType], default:None) –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.
-
group_id(Optional[GroupIds], default:None) –Groups the resources in the import file together with a unique name. This ID can be as filter in
ListApplicationComponentsandListServers. -
s3bucket_for_report_data(Optional[String], default:None) –The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with migrationhub-strategy-.
Raises:
-
AccessDeniedException–The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
-
InternalServerException–The server experienced an internal error. Try again.
-
ServiceQuotaExceededException–The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request body isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_migrationhubstrategy/_services/async_migration_hub_strategy.py
1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 | |