list_source_resources
async
¶
list_source_resources(
progress_update_stream: ProgressUpdateStream,
migration_task_name: MigrationTaskName,
*,
config_overrides: Optional[AsyncMigrationHubClientConfig] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxResultsSourceResources] = None,
) -> ListSourceResourcesResult
Lists all the source resource that are associated with the specified MigrationTaskName and ProgressUpdateStream.
Parameters:
-
progress_update_stream(ProgressUpdateStream) –The name of the progress-update stream, which is used for access control as well as a namespace for migration-task names that is implicitly linked to your AWS account. The progress-update stream must uniquely identify the migration tool as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account because it is scoped to the AWS account.
-
migration_task_name(MigrationTaskName) –A unique identifier that references the migration task. Do not store confidential data in this field.
-
next_token(Optional[Token], default:None) –If
NextTokenwas returned by a previous call, there are more results available. The value ofNextTokenis a unique pagination token for each page. To retrieve the next page of results, specify theNextTokenvalue that the previous call returned. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error. -
max_results(Optional[MaxResultsSourceResources], default:None) –The maximum number of results to include in the response. If more results exist than the value that you specify here for
MaxResults, the response will include a token that you can use to retrieve the next set of results.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerError–Exception raised when an internal, configuration, or dependency error is encountered.
-
InvalidInputException–Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.
-
ResourceNotFoundException–Exception raised when the request references a resource (Application Discovery Service configuration, update stream, migration task, etc.) that does not exist in Application Discovery Service (Application Discovery Service) or in Migration Hub's repository.
-
ServiceUnavailableException–Exception raised when there is an internal, configuration, or dependency error encountered.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_migration_hub/_services/async_migration_hub.py
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 | |