Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.
Parameters:
-
control_panel_arn
(__string)
–
The Amazon Resource Name (ARN) of the control panel.
-
max_results
(Optional[MaxResults], default:
None
)
–
The number of objects that you want to return with this call.
-
next_token
(Optional[__string], default:
None
)
–
The token that identifies which batch of results you want to see.
Raises:
-
AccessDeniedException
–
403 response - You do not have sufficient access to perform this action.
-
InternalServerException
–
500 response - InternalServiceError. Temporary service error. Retry the request.
-
ResourceNotFoundException
–
404 response - MalformedQueryString. The query string contains a syntax error or resource not found.
-
ThrottlingException
–
429 response - LimitExceededException or TooManyRequestsException.
-
ValidationException
–
400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_route53_recovery_control_config/_services/async_route53_recovery_control_config.py
| async def list_routing_controls(
self,
control_panel_arn: "capo_route53_recovery_control_config.types.__string.__string",
*,
config_overrides: Optional[
AsyncRoute53RecoveryControlConfigClientConfig
] = None,
max_results: Optional[
"capo_route53_recovery_control_config.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_route53_recovery_control_config.types.__string.__string"
] = None,
) -> "capo_route53_recovery_control_config.types.list_routing_controls_response.ListRoutingControlsResponse":
"""<p>Returns an array of routing controls for a control panel. A routing control is an Amazon Route 53 Application Recovery Controller construct that has one of two states: ON and OFF. You can map the routing control state to the state of an Amazon Route 53 health check, which can be used to control routing.</p>
Args:
control_panel_arn: <p>The Amazon Resource Name (ARN) of the control panel.</p>
max_results: <p>The number of objects that you want to return with this call.</p>
next_token: <p>The token that identifies which batch of results you want to see.</p>
Raises:
capo_route53_recovery_control_config.errors.access_denied_exception.AccessDeniedException: <p>403 response - You do not have sufficient access to perform this action.</p>
capo_route53_recovery_control_config.errors.internal_server_exception.InternalServerException: <p>500 response - InternalServiceError. Temporary service error. Retry the request.</p>
capo_route53_recovery_control_config.errors.resource_not_found_exception.ResourceNotFoundException: <p>404 response - MalformedQueryString. The query string contains a syntax error or resource not found.</p>
capo_route53_recovery_control_config.errors.throttling_exception.ThrottlingException: <p>429 response - LimitExceededException or TooManyRequestsException.</p>
capo_route53_recovery_control_config.errors.validation_exception.ValidationException: <p>400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.</p>
capo_route53_recovery_control_config.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_route53_recovery_control_config.types.list_routing_controls_request.ListRoutingControlsRequest]",
) -> AsyncOperationResponse[
"capo_route53_recovery_control_config.types.list_routing_controls_response.ListRoutingControlsResponse"
]:
import capo_route53_recovery_control_config._operations.route53_recovery_control_config.list_routing_controls
(
output,
http_response,
) = await capo_route53_recovery_control_config._operations.route53_recovery_control_config.list_routing_controls.async_list_routing_controls(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListRoutingControls")
)
input_: capo_route53_recovery_control_config.types.list_routing_controls_request.ListRoutingControlsRequest = {
"control_panel_arn": control_panel_arn
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|