import * as Effect from "effect/Effect"; import type { Cluster } from "./Cluster.ts"; /** * Shared scaffolding for AWS DocDBElastic HTTP bindings. * * NOT exported from `index.ts` — every `{Op}Http.ts` in this service is a * thin `Layer.effect(Cap, make…HttpBinding({ … }))` over one of the builders * below. Everything except the operation and the IAM action list is * boilerplate. */ /** * Elastic-cluster snapshot ARNs embed a server-generated UUID that is only * known at runtime, so snapshot-scoped grants use this wildcard. */ export declare const SNAPSHOT_ARN_WILDCARD = "arn:aws:docdb-elastic:*:*:cluster-snapshot/*"; /** * Build the impl Effect for an account-level operation (snapshot management, * restore, pending maintenance). The deploy-time half grants `actions` on * `resources` (default `*`) — these operations address snapshots and * clusters by ARNs that are runtime data. */ export declare const makeDocDBElasticAccountHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.DocDBElastic.GetClusterSnapshot`. */ 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. */ actions: readonly string[]; /** * IAM resources the actions are granted on. * @default ["*"] */ resources?: readonly string[]; }) => Effect.Effect<() => Effect.Effect<(request?: I | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for a cluster-scoped operation: the runtime callable * injects the bound {@link Cluster}'s ARN as `clusterArn` and the deploy-time * half grants `actions` on the cluster ARN (plus any `extraResources`). */ export declare const makeDocDBElasticClusterHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.DocDBElastic.StopCluster`. */ tag: string; /** The distilled operation; `clusterArn` is injected from the cluster. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the cluster ARN. */ actions: readonly string[]; /** Static IAM resources granted in addition to the cluster ARN. */ extraResources?: readonly string[]; }) => Effect.Effect<(cluster: Cluster) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map