Skip to content

get_namespace_deletion_status async

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

Gets the status of a namespace deletion task.

Raises:

Source code in docs_src/capo_iotthingsgraph/_services/async_io_t_things_graph.py
async def get_namespace_deletion_status(
    self, *, config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iotthingsgraph.types.get_namespace_deletion_status_request.GetNamespaceDeletionStatusRequest]",
    ) -> AsyncOperationResponse[
        "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,
        ) = await capo_iotthingsgraph._operations.iot_things_graph_front_end_service.get_namespace_deletion_status.async_get_namespace_deletion_status(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output