import { Region as AwsRegion } from "@distilled.cloud/aws/Region"; import * as Effect from "effect/Effect"; import type { Distribution } from "./Distribution.ts"; import type { KeyValueStore } from "./KeyValueStore.ts"; /** * Shared scaffolding for CloudFront HTTP bindings. * * NOT exported from `index.ts` — every thin `{Op}Http.ts` in this service is * a `Layer.effect(Cap, make…HttpBinding({ … }))` over one of the two builders * below. Everything except the operation, the IAM action list, and the * injected identifier is boilerplate. */ /** * Build the impl Effect for a distribution-scoped operation. The runtime * callable injects the bound {@link Distribution}'s id as the request's * `DistributionId`; the deploy-time half grants `actions` on the * distribution's ARN. */ export declare const makeDistributionScopedHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.CloudFront.GetInvalidation`. */ tag: string; /** The distilled operation; `DistributionId` is injected from the resource. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the distribution ARN. */ actions: readonly string[]; }) => Effect.Effect<(distribution: Distribution) => Effect.Effect<(request: Omit) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for a KeyValueStore data-plane operation * (`cloudfront-keyvaluestore`). The runtime callable injects the bound * {@link KeyValueStore}'s ARN as the request's `KvsARN`; the deploy-time half * grants `actions` on the store's ARN. The data-plane endpoint is global * (derived from the ARN), but distilled signs with plain SigV4 against the * context region and the service only accepts `us-east-1` signatures — so * the operation is resolved with the Region pinned to {@link KVS_REGION}, * exactly like the resource providers in `common.ts`. */ export declare const makeKeyValueStoreScopedHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.CloudFront.GetKey`. */ tag: string; /** The distilled operation; `KvsARN` is injected from the resource. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the KeyValueStore ARN. */ actions: readonly string[]; }) => Effect.Effect<(store: KeyValueStore) => Effect.Effect<(request: Omit) => Effect.Effect, never, never>, never, Exclude>; //# sourceMappingURL=BindingHttp.d.ts.map