| 1 | import * as config from "@distilled.cloud/aws/config-service"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeConfigResourceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import type { DeliveryChannel } from "./DeliveryChannel.ts"; |
| 5 | import { DeliverConfigSnapshot } from "./DeliverConfigSnapshot.ts"; |
| 6 | |
| 7 | export 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 | ); |