Skip to content

delete_cell

delete_cell(
    cell_name: __string,
    *,
    config_overrides: Optional[Route53RecoveryReadinessClientConfig] = None,
) -> None

Delete a cell. When successful, the response code is 204, with no response body.

Parameters:

  • cell_name (__string) –

    The name of the cell.

Raises:

Source code in docs_src/capo_route53_recovery_readiness/_services/route53_recovery_readiness.py
def delete_cell(
    self,
    cell_name: "capo_route53_recovery_readiness.types.__string.__string",
    *,
    config_overrides: Optional[Route53RecoveryReadinessClientConfig] = None,
) -> None:
    """<p>Delete a cell. When successful, the response code is 204, with no response body.</p>

    Args:
        cell_name: <p>The name of the cell.</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.delete_cell_request.DeleteCellRequest]",
    ) -> OperationResponse[None]:
        import capo_route53_recovery_readiness._operations.route53_recovery_readiness.delete_cell

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteCell")
    )
    input_: capo_route53_recovery_readiness.types.delete_cell_request.DeleteCellRequest = {
        "cell_name": cell_name
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output