| 1 | import * as neptunegraph from "@distilled.cloud/aws/neptune-graph"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { |
| 4 | EXPORT_TASK_ARN_WILDCARD, |
| 5 | makeNeptuneGraphGraphHttpBinding, |
| 6 | } from "./BindingHttp.ts"; |
| 7 | import { StartExportTask } from "./StartExportTask.ts"; |
| 8 | |
| 9 | export const StartExportTaskHttp = Layer.effect( |
| 10 | StartExportTask, |
| 11 | makeNeptuneGraphGraphHttpBinding({ |
| 12 | tag: "AWS.NeptuneGraph.StartExportTask", |
| 13 | operation: neptunegraph.startExportTask, |
| 14 | actions: ["neptune-graph:StartExportTask"], |
| 15 | // StartExportTask authorizes against both the graph and the (not yet |
| 16 | // existing) export-task resource types. |
| 17 | extraResources: [EXPORT_TASK_ARN_WILDCARD], |
| 18 | passRole: true, |
| 19 | }), |
| 20 | ); |