create_restore_testing_selection
¶
create_restore_testing_selection(
restore_testing_plan_name: str,
restore_testing_selection: RestoreTestingSelectionForCreate,
*,
config_overrides: Optional[BackupClientConfig] = None,
creator_request_id: Optional[str] = None,
) -> CreateRestoreTestingSelectionOutput
This request can be sent after CreateRestoreTestingPlan request returns successfully. This is the second part of creating a resource testing plan, and it must be completed sequentially.
This consists of RestoreTestingSelectionName, ProtectedResourceType, and one of the following:
-
ProtectedResourceArns -
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for ProtectedResourceArns along with ProtectedResourceConditions. Alternatively, you can include up to 30 specific protected resource ARNs in ProtectedResourceArns.
Cannot select by both protected resource types AND specific ARNs. Request will fail if both are included.
Parameters:
-
creator_request_id(Optional[str], default:None) –This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
-
restore_testing_plan_name(str) –Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request.
-
restore_testing_selection(RestoreTestingSelectionForCreate) –This consists of
RestoreTestingSelectionName,ProtectedResourceType, and one of the following:-
ProtectedResourceArns -
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for
ProtectedResourceArnsalong withProtectedResourceConditions. Alternatively, you can include up to 30 specific protected resource ARNs inProtectedResourceArns. -
Raises:
-
AlreadyExistsException–The required resource already exists.
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_backup/_services/backup.py
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 | |