Skip to content

list_private_graph_endpoints async

list_private_graph_endpoints(
    graph_identifier: GraphIdentifier,
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListPrivateGraphEndpointsOutput

Lists private endpoints for a specified Neptune Analytics graph.

Parameters:

  • graph_identifier (GraphIdentifier) –

    The unique identifier of the Neptune Analytics graph.

  • next_token (Optional[PaginationToken], default: None ) –

    Pagination token used to paginate output.

    When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.

  • max_results (Optional[MaxResults], default: None ) –

    The total number of records to return in the command's output.

    If the total number of records available is more than the value specified, nextToken is provided in the command's output. To resume pagination, provide the nextToken output value in the nextToken argument of a subsequent command. Do not use the nextToken response element directly outside of the Amazon CLI.

Raises:

Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
async def list_private_graph_endpoints(
    self,
    graph_identifier: "capo_neptune_graph.types.graph_identifier.GraphIdentifier",
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
    next_token: Optional[
        "capo_neptune_graph.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_neptune_graph.types.max_results.MaxResults"] = None,
) -> "capo_neptune_graph.types.list_private_graph_endpoints_output.ListPrivateGraphEndpointsOutput":
    """<p>Lists private endpoints for a specified Neptune Analytics graph.</p>

    Args:
        graph_identifier: <p>The unique identifier of the Neptune Analytics graph.</p>
        next_token: <p>Pagination token used to paginate output.</p> <p>When this value is provided as input, the service returns results from where the previous response left off. When this value is present in output, it indicates that there are more results to retrieve.</p>
        max_results: <p>The total number of records to return in the command's output.</p> <p>If the total number of records available is more than the value specified, <code>nextToken</code> is provided in the command's output. To resume pagination, provide the <code>nextToken</code> output value in the <code>nextToken</code> argument of a subsequent command. Do not use the <code>nextToken</code> response element directly outside of the Amazon CLI.</p>

    Raises:
        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.list_private_graph_endpoints_input.ListPrivateGraphEndpointsInput]",
    ) -> AsyncOperationResponse[
        "capo_neptune_graph.types.list_private_graph_endpoints_output.ListPrivateGraphEndpointsOutput"
    ]:
        import capo_neptune_graph._operations.amazon_neptune_graph.list_private_graph_endpoints

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListPrivateGraphEndpoints")
    )
    input_: capo_neptune_graph.types.list_private_graph_endpoints_input.ListPrivateGraphEndpointsInput = {
        "graph_identifier": graph_identifier
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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