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