Skip to content

list_export_tasks async

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

Retrieves a list of export tasks.

Parameters:

  • graph_identifier (Optional[GraphIdentifier], default: None ) –

    The unique identifier of the Neptune Analytics graph.

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

    Pagination token used to paginate input.

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

    The maximum number of export tasks to return.

Raises:

Source code in docs_src/capo_neptune_graph/_services/async_neptune_graph.py
async def list_export_tasks(
    self,
    *,
    config_overrides: Optional[AsyncNeptuneGraphClientConfig] = None,
    graph_identifier: Optional[
        "capo_neptune_graph.types.graph_identifier.GraphIdentifier"
    ] = 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_export_tasks_output.ListExportTasksOutput":
    """<p>Retrieves a list of export tasks.</p>

    Args:
        graph_identifier: <p>The unique identifier of the Neptune Analytics graph.</p>
        next_token: <p>Pagination token used to paginate input.</p>
        max_results: <p>The maximum number of export tasks to return.</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_export_tasks_input.ListExportTasksInput]",
    ) -> AsyncOperationResponse[
        "capo_neptune_graph.types.list_export_tasks_output.ListExportTasksOutput"
    ]:
        import capo_neptune_graph._operations.amazon_neptune_graph.list_export_tasks

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListExportTasks")
    )
    input_: capo_neptune_graph.types.list_export_tasks_input.ListExportTasksInput = {}
    if graph_identifier is not None:
        input_["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