| 1 | import * as cloudfront from "@distilled.cloud/aws/cloudfront"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeDistributionScopedHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { CreateInvalidation } from "./CreateInvalidation.ts"; |
| 5 | |
| 6 | export const CreateInvalidationHttp = Layer.effect( |
| 7 | CreateInvalidation, |
| 8 | makeDistributionScopedHttpBinding({ |
| 9 | tag: "AWS.CloudFront.CreateInvalidation", |
| 10 | operation: cloudfront.createInvalidation, |
| 11 | actions: ["cloudfront:CreateInvalidation"], |
| 12 | }), |
| 13 | ); |