The best way to control Claude Code, Codex and more from any computer or phone

main
ts 38 lines 1.49 KB
Raw
1 import type * as neptunegraph from "@distilled.cloud/aws/neptune-graph";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Graph } from "./Graph.ts";
5
6 /**
7 * Runtime binding for the `StartExportTask` operation (IAM action `neptune-graph:StartExportTask`),
8 * scoped to one {@link Graph}.
9 *
10 * Exports the bound graph's data to Amazon S3 (the graph must be `AVAILABLE`). The request passes Neptune Analytics a data-access role, so the grant includes `iam:PassRole` conditioned to `neptune-graph.amazonaws.com`. Poll progress with {@link GetExportTask}. Provide the implementation with
11 * `Effect.provide(AWS.NeptuneGraph.StartExportTaskHttp)`.
12 * ### Importing and Exporting Data
13 * **Example:** Export a graph to S3 as Parquet
14 * ```typescript
15 * const startExport = yield* NeptuneGraph.StartExportTask(graph);
16 *
17 * const task = yield* startExport({
18 * destination: "s3://my-bucket/exports/",
19 * format: "PARQUET",
20 * kmsKeyIdentifier: key.keyArn,
21 * roleArn: exportRole.roleArn,
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface StartExportTask extends Binding.Service<
28 StartExportTask,
29 "AWS.NeptuneGraph.StartExportTask",
30 (
31 graph: Graph,
32 ) => Effect.Effect<
33 (
34 request: Omit<neptunegraph.StartExportTaskInput, "graphIdentifier">,
35 ) => Effect.Effect<neptunegraph.StartExportTaskOutput, neptunegraph.StartExportTaskError>
36 >
37 > {}
38 export const StartExportTask = Binding.Service<StartExportTask>("AWS.NeptuneGraph.StartExportTask");