| 1 | import * as glue from "@distilled.cloud/aws/glue"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeGlueJobHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ResetJobBookmark } from "./ResetJobBookmark.ts"; |
| 5 | |
| 6 | export const ResetJobBookmarkHttp = Layer.effect( |
| 7 | ResetJobBookmark, |
| 8 | makeGlueJobHttpBinding({ |
| 9 | tag: "AWS.Glue.ResetJobBookmark", |
| 10 | operation: glue.resetJobBookmark, |
| 11 | actions: ["glue:ResetJobBookmark"], |
| 12 | // Glue evaluates bookmark actions without a resource — an ARN-scoped |
| 13 | // grant never matches (verified live via the IAM policy simulator). |
| 14 | anyResource: true, |
| 15 | }), |
| 16 | ); |