Skip to content

get_namespace_deletion_status

get_namespace_deletion_status(
    *, config_overrides: Optional[IoTThingsGraphClientConfig] = None
) -> GetNamespaceDeletionStatusResponse

Gets the status of a namespace deletion task.

Raises:

Source code in docs_src/capo_iotthingsgraph/_services/io_t_things_graph.py
def get_namespace_deletion_status(
    self, *, config_overrides: Optional[IoTThingsGraphClientConfig] = None
) -> "capo_iotthingsgraph.types.get_namespace_deletion_status_response.GetNamespaceDeletionStatusResponse":
    """<p>Gets the status of a namespace deletion task.</p>

    Raises:
        capo_iotthingsgraph.errors.internal_failure_exception.InternalFailureException: <p></p>
        capo_iotthingsgraph.errors.invalid_request_exception.InvalidRequestException: <p></p>
        capo_iotthingsgraph.errors.throttling_exception.ThrottlingException: <p></p>
        capo_iotthingsgraph.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iotthingsgraph.types.get_namespace_deletion_status_request.GetNamespaceDeletionStatusRequest]",
    ) -> OperationResponse[
        "capo_iotthingsgraph.types.get_namespace_deletion_status_response.GetNamespaceDeletionStatusResponse"
    ]:
        import capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_namespace_deletion_status

        output, http_response = (
            capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_namespace_deletion_status.get_namespace_deletion_status(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetNamespaceDeletionStatus")
    )
    input_: capo_iotthingsgraph.types.get_namespace_deletion_status_request.GetNamespaceDeletionStatusRequest = {}

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