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