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