| 1 | import type * as neptunegraph from "@distilled.cloud/aws/neptune-graph"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Graph } from "./Graph.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for the `ListQueries` operation (IAM action `neptune-graph:ListQueries`), |
| 8 | * scoped to one {@link Graph}. |
| 9 | * |
| 10 | * Lists the openCypher queries currently active on the bound graph. Provide the implementation with |
| 11 | * `Effect.provide(AWS.NeptuneGraph.ListQueriesHttp)`. |
| 12 | * ### Managing Queries |
| 13 | * **Example:** List active queries |
| 14 | * ```typescript |
| 15 | * const listQueries = yield* NeptuneGraph.ListQueries(graph); |
| 16 | * |
| 17 | * const { queries } = yield* listQueries({ maxResults: 100 }); |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface ListQueries extends Binding.Service< |
| 23 | ListQueries, |
| 24 | "AWS.NeptuneGraph.ListQueries", |
| 25 | ( |
| 26 | graph: Graph, |
| 27 | ) => Effect.Effect< |
| 28 | ( |
| 29 | request: Omit<neptunegraph.ListQueriesInput, "graphIdentifier">, |
| 30 | ) => Effect.Effect< |
| 31 | neptunegraph.ListQueriesOutput, |
| 32 | neptunegraph.ListQueriesError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const ListQueries = Binding.Service<ListQueries>( |
| 37 | "AWS.NeptuneGraph.ListQueries", |
| 38 | ); |