1import * as config from "@distilled.cloud/aws/config-service";
2import * as Layer from "effect/Layer";
3import { makeConfigResourceHttpBinding } from "./BindingHttp.ts";
4import type { DeliveryChannel } from "./DeliveryChannel.ts";
5import { DeliverConfigSnapshot } from "./DeliverConfigSnapshot.ts";
6
7export const DeliverConfigSnapshotHttp = Layer.effect(
8 DeliverConfigSnapshot,
9 makeConfigResourceHttpBinding({
10 tag: "AWS.Config.DeliverConfigSnapshot",
11 operation: config.deliverConfigSnapshot,
12 actions: ["config:DeliverConfigSnapshot"],
13 requestKey: "deliveryChannelName",
14 identifier: (channel: DeliveryChannel) => channel.deliveryChannelName,
15 }),
16);