1import * as S3 from "@distilled.cloud/aws/s3";
2import * as Layer from "effect/Layer";
3import { makeRailwayS3Binding } from "./BucketBinding.ts";
4import { DeleteObject } from "./DeleteObject.ts";
5
6/**
7 * HTTP implementation of {@link DeleteObject}. Calls distilled S3
8 * `deleteObject` against the Railway endpoint with the bucket's credentials.
9 *
10 * @layer
11 * @product Bucket
12 * @provides Railway.DeleteObject
13 */
14export const DeleteObjectHttp = Layer.effect(
15 DeleteObject,
16 makeRailwayS3Binding({
17 tag: "Railway.DeleteObject",
18 operation: S3.deleteObject,
19 }),
20);