Skip to content

list_associated_route53_health_checks

list_associated_route53_health_checks(
    routing_control_arn: __string,
    *,
    config_overrides: Optional[Route53RecoveryControlConfigClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> ListAssociatedRoute53HealthChecksResponse

Returns an array of all Amazon Route 53 health checks associated with a specific routing control.

Parameters:

  • 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.

  • routing_control_arn (__string) –

    The Amazon Resource Name (ARN) of the routing control.

Raises:

  • 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.

  • 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/route53_recovery_control_config.py
def list_associated_route53_health_checks(
    self,
    routing_control_arn: "capo_route53_recovery_control_config.types.__string.__string",
    *,
    config_overrides: Optional[Route53RecoveryControlConfigClientConfig] = 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_associated_route53_health_checks_response.ListAssociatedRoute53HealthChecksResponse":
    """<p>Returns an array of all Amazon Route 53 health checks associated with a specific routing control.</p>

    Args:
        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>
        routing_control_arn: <p>The Amazon Resource Name (ARN) of the routing control.</p>

    Raises:
        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.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.
    """

    def _handler(
        req: "OperationRequest[capo_route53_recovery_control_config.types.list_associated_route53_health_checks_request.ListAssociatedRoute53HealthChecksRequest]",
    ) -> OperationResponse[
        "capo_route53_recovery_control_config.types.list_associated_route53_health_checks_response.ListAssociatedRoute53HealthChecksResponse"
    ]:
        import capo_route53_recovery_control_config._operations.route53_recovery_control_config.list_associated_route53_health_checks

        output, http_response = (
            capo_route53_recovery_control_config._operations.route53_recovery_control_config.list_associated_route53_health_checks.list_associated_route53_health_checks(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAssociatedRoute53HealthChecks")
    )
    input_: capo_route53_recovery_control_config.types.list_associated_route53_health_checks_request.ListAssociatedRoute53HealthChecksRequest = {
        "routing_control_arn": routing_control_arn
    }
    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