Skip to content

get_readiness_check_resource_status

get_readiness_check_resource_status(
    readiness_check_name: __string,
    resource_identifier: __string,
    *,
    config_overrides: Optional[Route53RecoveryReadinessClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> GetReadinessCheckResourceStatusResponse

Gets individual readiness status for a readiness check. To see the overall readiness status for a recovery group, that considers the readiness status for all the readiness checks in the recovery group, use GetRecoveryGroupReadinessSummary.

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.

  • readiness_check_name (__string) –

    Name of a readiness check.

  • resource_identifier (__string) –

    The resource identifier, which is the Amazon Resource Name (ARN) or the identifier generated for the resource by Application Recovery Controller (for example, for a DNS target resource).

Raises:

Source code in docs_src/capo_route53_recovery_readiness/_services/route53_recovery_readiness.py
def get_readiness_check_resource_status(
    self,
    readiness_check_name: "capo_route53_recovery_readiness.types.__string.__string",
    resource_identifier: "capo_route53_recovery_readiness.types.__string.__string",
    *,
    config_overrides: Optional[Route53RecoveryReadinessClientConfig] = None,
    max_results: Optional[
        "capo_route53_recovery_readiness.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_route53_recovery_readiness.types.__string.__string"
    ] = None,
) -> "capo_route53_recovery_readiness.types.get_readiness_check_resource_status_response.GetReadinessCheckResourceStatusResponse":
    """<p>Gets individual readiness status for a readiness check. To see the overall readiness status for a recovery group, that considers the readiness status for all the readiness checks in the recovery group, use GetRecoveryGroupReadinessSummary.</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>
        readiness_check_name: <p>Name of a readiness check.</p>
        resource_identifier: <p>The resource identifier, which is the Amazon Resource Name (ARN) or the identifier generated for the resource by Application Recovery Controller (for example, for a DNS target resource).</p>

    Raises:
        capo_route53_recovery_readiness.errors.access_denied_exception.AccessDeniedException: User does not have sufficient access to perform this action.
        capo_route53_recovery_readiness.errors.internal_server_exception.InternalServerException: An unexpected error occurred.
        capo_route53_recovery_readiness.errors.resource_not_found_exception.ResourceNotFoundException: The requested resource does not exist.
        capo_route53_recovery_readiness.errors.throttling_exception.ThrottlingException: Request was denied due to request throttling.
        capo_route53_recovery_readiness.errors.validation_exception.ValidationException: The input fails to satisfy the constraints specified by an AWS service.
        capo_route53_recovery_readiness.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_route53_recovery_readiness.types.get_readiness_check_resource_status_request.GetReadinessCheckResourceStatusRequest]",
    ) -> OperationResponse[
        "capo_route53_recovery_readiness.types.get_readiness_check_resource_status_response.GetReadinessCheckResourceStatusResponse"
    ]:
        import capo_route53_recovery_readiness._operations.route53_recovery_readiness.get_readiness_check_resource_status

        output, http_response = (
            capo_route53_recovery_readiness._operations.route53_recovery_readiness.get_readiness_check_resource_status.get_readiness_check_resource_status(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetReadinessCheckResourceStatus")
    )
    input_: capo_route53_recovery_readiness.types.get_readiness_check_resource_status_request.GetReadinessCheckResourceStatusRequest = {
        "readiness_check_name": readiness_check_name,
        "resource_identifier": resource_identifier,
    }
    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