import * as Effect from "effect/Effect"; import type { HealthCheck } from "./HealthCheck.ts"; import type { HostedZone } from "./HostedZone.ts"; /** * Shared scaffolding for the Route 53 runtime bindings. * * NOT exported from `index.ts` — every `{Op}Http.ts` in this service is a * thin `Layer.effect(Cap, makeRoute53…HttpBinding({ … }))` over one of the * three builders below. Everything except the operation, the IAM action * list, and (for scoped operations) the injected zone / health check id is * boilerplate. * * Route 53 ARNs are global and account-less: * `arn:aws:route53:::hostedzone/{Id}` / `arn:aws:route53:::healthcheck/{Id}`. */ /** * Build the impl Effect for a hosted-zone-scoped Route 53 operation: the * runtime callable injects the bound {@link HostedZone}'s id under * `requestKey` and the deploy-time half grants `actions` on the zone's ARN * (or `*` when the action does not support resource-level permissions). */ export declare const makeRoute53ZoneHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.Route53.ListResourceRecordSets`. */ tag: string; /** The distilled operation; the zone id is injected under `requestKey`. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the hosted zone ARN. */ actions: readonly string[]; /** * Request key the zone id is injected under (`getHostedZone` uses `Id`, * everything else `HostedZoneId`). * @default "HostedZoneId" */ requestKey?: "HostedZoneId" | "Id"; /** * Grant on `*` instead of the zone ARN — for actions without * resource-level permission support (e.g. `route53:TestDNSAnswer`). */ wildcardIam?: boolean; }) => Effect.Effect<(zone: HostedZone) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for a health-check-scoped Route 53 operation: the * runtime callable injects the bound {@link HealthCheck}'s id as * `HealthCheckId` and the deploy-time half grants `actions` on the health * check's ARN. */ export declare const makeRoute53HealthCheckHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.Route53.GetHealthCheckStatus`. */ tag: string; /** The distilled operation; `HealthCheckId` is injected from the check. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the health check ARN. */ actions: readonly string[]; }) => Effect.Effect<(healthCheck: HealthCheck) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an account-level Route 53 operation (no resource * argument): the deploy-time half grants `actions` on `resources` * (default `*`). */ export declare const makeRoute53AccountHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.Route53.ListHostedZones`. */ 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 `resources`. */ 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>; //# sourceMappingURL=BindingHttp.d.ts.map