Skip to content

stop_graph async

stop_graph(
    graph_identifier: GraphIdentifier,
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
) -> StopGraphOutput

Stops the specific graph.

Parameters:

  • graph_identifier (GraphIdentifier) –

    The unique identifier of the Neptune Analytics graph.

Raises:

Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
async def stop_graph(
    self,
    graph_identifier: "capo_neptune_graph.types.graph_identifier.GraphIdentifier",
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
) -> "capo_neptune_graph.types.stop_graph_output.StopGraphOutput":
    """<p>Stops the specific graph.</p>

    Args:
        graph_identifier: <p>The unique identifier of the Neptune Analytics graph.</p>

    Raises:
        capo_neptune_graph.errors.conflict_exception.ConflictException: <p>Raised when a conflict is encountered.</p>
        capo_neptune_graph.errors.internal_server_exception.InternalServerException: <p>A failure occurred on the server.</p>
        capo_neptune_graph.errors.resource_not_found_exception.ResourceNotFoundException: <p>A specified resource could not be located.</p>
        capo_neptune_graph.errors.throttling_exception.ThrottlingException: <p>The exception was interrupted by throttling.</p>
        capo_neptune_graph.errors.validation_exception.ValidationException: <p>A resource could not be validated.</p>
        capo_neptune_graph.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_neptune_graph.types.stop_graph_input.StopGraphInput]",
    ) -> AsyncOperationResponse[
        "capo_neptune_graph.types.stop_graph_output.StopGraphOutput"
    ]:
        import capo_neptune_graph._operations.amazon_neptune_graph.stop_graph

        (
            output,
            http_response,
        ) = await capo_neptune_graph._operations.amazon_neptune_graph.stop_graph.async_stop_graph(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopGraph")
    )
    input_: capo_neptune_graph.types.stop_graph_input.StopGraphInput = {
        "graph_identifier": graph_identifier
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output