import * as Effect from "effect/Effect"; import type { GraphqlApi } from "./GraphqlApi.ts"; /** * Shared scaffolding for AppSync HTTP bindings. * * NOT exported from `index.ts` — every single-operation `{Op}Http.ts` in * this service is a thin `Layer.effect(Cap, make…HttpBinding({ … }))` over * one of the two builders below. Everything except the operation and the * IAM action is boilerplate: * * - {@link makeAppSyncApiHttpBinding} — control-plane operations scoped to a * bound {@link GraphqlApi} (`FlushApiCache`, `GetIntrospectionSchema`). * The runtime callable injects the bound API's `apiId`. * - {@link makeAppSyncAccountHttpBinding} — account-level pass-through * operations that bind to no resource (`EvaluateCode`). * * Both grant on `Resource: "*"` — these AppSync control-plane actions define * no IAM resource types (per the Service Authorization Reference), so a * scoped API ARN is AccessDenied. `GraphQLHttp` stays bespoke: the data * plane has no SDK operation, each request is a SigV4-signed POST to the * API's `graphqlUrl`. */ /** * Build the impl Effect for a control-plane operation scoped to a bound * {@link GraphqlApi}. The runtime callable injects the API's `apiId` into * the request; the deploy-time half grants `actions` on `*` (these actions * define no IAM resource types). */ export declare const makeAppSyncApiHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.AppSync.FlushApiCache`. */ tag: string; /** The distilled operation; `apiId` is injected from the bound API. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on `*`. */ actions: readonly string[]; }) => Effect.Effect<(api: GraphqlApi) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an account-level AppSync operation that binds * to no resource. The runtime callable passes the caller's request through * unchanged; the deploy-time half grants `actions` on `*` (these actions * define no IAM resource types). */ export declare const makeAppSyncAccountHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.AppSync.EvaluateCode`. */ 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) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map