list_discovered_resources
¶
list_discovered_resources(
progress_update_stream: ProgressUpdateStream,
migration_task_name: MigrationTaskName,
*,
config_overrides: Optional[MigrationHubClientConfig] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxResultsResources] = None,
) -> ListDiscoveredResourcesResult
Lists discovered resources associated with the given MigrationTask.
Parameters:
-
progress_update_stream(ProgressUpdateStream) –The name of the ProgressUpdateStream.
-
migration_task_name(MigrationTaskName) –The name of the MigrationTask. Do not store personal data in this field.
-
next_token(Optional[Token], default:None) –If a
NextTokenwas returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token inNextToken. -
max_results(Optional[MaxResultsResources], default:None) –The maximum number of results returned per page.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
HomeRegionNotSetException–The home region is not set. Set the home region to continue.
-
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/migration_hub.py
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 | |