Lists all the resources in your Amazon Web Services account in this Amazon Web Services Region that are managed for zonal shifts in Amazon Application Recovery Controller, and information about them. The information includes the zonal autoshift status for the resource, as well as the Amazon Resource Name (ARN), the Availability Zones that each resource is deployed in, and the resource name.
Parameters:
-
next_token
(Optional[str], default:
None
)
–
Specifies that you want to receive the next page of results. Valid only if you received a nextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's nextToken response to request the next page of results.
-
max_results
(Optional[MaxResults], default:
None
)
–
The number of objects that you want to return with this call.
Raises:
Source code in docs_src/capo_arc_zonal_shift/_services/arc_zonal_shift.py
| def list_managed_resources(
self,
*,
config_overrides: Optional[ARCZonalShiftClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[
"capo_arc_zonal_shift.types.max_results.MaxResults"
] = None,
) -> "capo_arc_zonal_shift.types.list_managed_resources_response.ListManagedResourcesResponse":
"""<p>Lists all the resources in your Amazon Web Services account in this Amazon Web Services Region that are managed for zonal shifts in Amazon Application Recovery Controller, and information about them. The information includes the zonal autoshift status for the resource, as well as the Amazon Resource Name (ARN), the Availability Zones that each resource is deployed in, and the resource name.</p>
Args:
next_token: <p>Specifies that you want to receive the next page of results. Valid only if you received a <code>nextToken</code> response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's <code>nextToken</code> response to request the next page of results.</p>
max_results: <p>The number of objects that you want to return with this call.</p>
Raises:
capo_arc_zonal_shift.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_arc_zonal_shift.errors.internal_server_exception.InternalServerException: <p>There was an internal server error.</p>
capo_arc_zonal_shift.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_arc_zonal_shift.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_arc_zonal_shift.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_arc_zonal_shift.types.list_managed_resources_request.ListManagedResourcesRequest]",
) -> OperationResponse[
"capo_arc_zonal_shift.types.list_managed_resources_response.ListManagedResourcesResponse"
]:
import capo_arc_zonal_shift._operations.perc_data_plane.list_managed_resources
output, http_response = (
capo_arc_zonal_shift._operations.perc_data_plane.list_managed_resources.list_managed_resources(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListManagedResources")
)
input_: capo_arc_zonal_shift.types.list_managed_resources_request.ListManagedResourcesRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|