1import * as S3 from "@distilled.cloud/aws/s3";
2import * as Layer from "effect/Layer";
3import { makeBucketHttpBinding } from "./BindingHttp.ts";
4import { GetObject } from "./GetObject.ts";
5
6export const GetObjectHttp = Layer.effect(
7 GetObject,
8 makeBucketHttpBinding({
9 tag: "AWS.S3.GetObject",
10 operation: S3.getObject,
11 actions: ["s3:GetObject", "s3:GetObjectVersion"],
12 listBucket: true,
13 }),
14);