1import * as schemas from "@distilled.cloud/aws/schemas";
2import * as Layer from "effect/Layer";
3import { makeSchemasDiscovererHttpBinding } from "./BindingHttp.ts";
4import { StartDiscoverer } from "./StartDiscoverer.ts";
5
6export const StartDiscovererHttp = Layer.effect(
7 StartDiscoverer,
8 makeSchemasDiscovererHttpBinding({
9 tag: "AWS.Schemas.StartDiscoverer",
10 operation: schemas.startDiscoverer,
11 actions: ["schemas:StartDiscoverer"],
12 // StartDiscoverer re-enables the discoverer's managed EventBridge rule.
13 ruleActions: ["events:EnableRule"],
14 }),
15);