import * as Effect from "effect/Effect"; import type { PolicyStatement } from "../IAM/Policy.ts"; import type { Accelerator } from "./Accelerator.ts"; import type { EndpointGroup } from "./EndpointGroup.ts"; /** * Shared scaffolding for AWS Global Accelerator 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 and the IAM action list is * boilerplate. * * The Global Accelerator control-plane API only exists in us-west-2, so the * operation is resolved under {@link withGaRegion} — the binding works no * matter which region the host Function is deployed to. */ /** * Build the impl Effect for a Global Accelerator operation scoped to an * {@link Accelerator}: the deploy-time half grants `actions` on the bound * accelerator's ARN, and the runtime half injects the accelerator's * `AcceleratorArn` into every request. */ export declare const makeGaAcceleratorHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.GlobalAccelerator.DescribeAccelerator`. */ tag: string; /** The distilled operation. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the accelerator ARN. */ actions: readonly string[]; }) => Effect.Effect<(accelerator: Accelerator) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, Exclude>; /** * Build the impl Effect for a Global Accelerator operation scoped to an * {@link EndpointGroup}: the deploy-time half grants `actions` on the bound * endpoint group's ARN, and the runtime half injects the group's * `EndpointGroupArn` into every request. */ export declare const makeGaEndpointGroupHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.GlobalAccelerator.AddEndpoints`. */ tag: string; /** The distilled operation. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the endpoint group ARN. */ actions: readonly string[]; /** * Additional statements granted alongside the group-scoped one (e.g. the * `ec2:Describe*` / `elasticloadbalancing:DescribeLoadBalancers` reads * Global Accelerator performs on the caller's behalf when endpoints are * added). */ extraStatements?: readonly PolicyStatement[]; }) => Effect.Effect<(endpointGroup: EndpointGroup) => Effect.Effect<(request: Omit) => Effect.Effect, never, never>, never, Exclude>; //# sourceMappingURL=BindingHttp.d.ts.map