import * as Effect from "effect/Effect"; import type { FileSystem } from "./FileSystem.ts"; /** * Shared scaffolding for the EFS runtime bindings. * * NOT exported from `index.ts` — every `{Op}Http.ts` in this service is a * thin `Layer.effect(Cap, makeEfs…HttpBinding({ … }))` over one of the two * builders below. Everything except the operation, the IAM action list, and * (for file-system-scoped operations) the injected `FileSystemId` is * boilerplate. */ /** * Build the impl Effect for a file-system-scoped EFS operation: the runtime * callable injects the bound {@link FileSystem}'s ID as `FileSystemId` and * the deploy-time half grants `actions` on the file system's ARN. */ export declare const makeEfsFileSystemHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.EFS.DescribeMountTargets`. */ tag: string; /** The distilled operation; `FileSystemId` is injected from the file system. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the file system ARN. */ actions: readonly string[]; /** * Additional IAM actions granted on `*`. Used for tag-on-create * (`elasticfilesystem:TagResource` authorizes against the ARN of the * resource being created, which is unknowable at deploy time). */ wildcardActions?: readonly string[]; }) => Effect.Effect<(fileSystem: FileSystem) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an account-level EFS operation (no file-system * argument): the deploy-time half grants `actions` on `*`. Used for * operations that authorize against ARNs unknowable at deploy time (e.g. * `DeleteAccessPoint` authorizes on the access point's own ARN, and access * points deleted at runtime are typically created at runtime too). */ export declare const makeEfsAccountHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.EFS.DeleteAccessPoint`. */ tag: string; /** The distilled operation, invoked with the caller's request as-is. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on `*`. */ actions: readonly string[]; }) => Effect.Effect<() => Effect.Effect<(request?: I | undefined) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map