import * as S3 from "@distilled.cloud/aws/s3";
import * as Layer from "effect/Layer";
import { makeTigrisS3Binding } from "./BucketBinding.ts";
import { ListObjectsV2 } from "./ListObjectsV2.ts";
/**
* HTTP implementation of {@link ListObjectsV2}. Calls distilled S3
* `listObjectsV2` against the Tigris endpoint with the bucket's credentials.
*
* @layer
* @product Bucket
* @provides Fly.ListObjectsV2
*/
export const ListObjectsV2Http = Layer.effect(
ListObjectsV2,
makeTigrisS3Binding({
tag: "Fly.ListObjectsV2",
operation: S3.listObjectsV2,
}),
);