Returns a list of restore testing selections. Can be filtered by MaxResults and RestoreTestingPlanName.
Parameters:
-
max_results
(Optional[ListRestoreTestingSelectionsInputMaxResultsInteger], default:
None
)
–
The maximum number of items to be returned.
-
next_token
(Optional[str], default:
None
)
–
The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the nexttoken.
-
restore_testing_plan_name
(str)
–
Returns restore testing selections by the specified restore testing plan name.
Raises:
Source code in docs_src/capo_backup/_services/backup.py
| def list_restore_testing_selections(
self,
restore_testing_plan_name: str,
*,
config_overrides: Optional[BackupClientConfig] = None,
max_results: Optional[
"capo_backup.types.list_restore_testing_selections_input_max_results_integer.ListRestoreTestingSelectionsInputMaxResultsInteger"
] = None,
next_token: Optional[str] = None,
) -> "capo_backup.types.list_restore_testing_selections_output.ListRestoreTestingSelectionsOutput":
"""<p>Returns a list of restore testing selections. Can be filtered by <code>MaxResults</code> and <code>RestoreTestingPlanName</code>.</p>
Args:
max_results: <p>The maximum number of items to be returned.</p>
next_token: <p>The next item following a partial list of returned items. For example, if a request is made to return <code>MaxResults</code> number of items, <code>NextToken</code> allows you to return more items in your list starting at the location pointed to by the nexttoken.</p>
restore_testing_plan_name: <p>Returns restore testing selections by the specified restore testing plan name.</p>
Raises:
capo_backup.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>Indicates that something is wrong with a parameter's value. For example, the value is out of range.</p>
capo_backup.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource that is required for the action doesn't exist.</p>
capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_backup.types.list_restore_testing_selections_input.ListRestoreTestingSelectionsInput]",
) -> OperationResponse[
"capo_backup.types.list_restore_testing_selections_output.ListRestoreTestingSelectionsOutput"
]:
import capo_backup._operations.cryo_controller_user_manager.list_restore_testing_selections
output, http_response = (
capo_backup._operations.cryo_controller_user_manager.list_restore_testing_selections.list_restore_testing_selections(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListRestoreTestingSelections")
)
input_: capo_backup.types.list_restore_testing_selections_input.ListRestoreTestingSelectionsInput = {
"restore_testing_plan_name": restore_testing_plan_name
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|