import * as Effect from "effect/Effect"; import type { AutoScalingGroup } from "./AutoScalingGroup.ts"; /** * Shared scaffolding for EC2 Auto Scaling HTTP bindings. * * NOT exported from `index.ts` — every single-operation `{Op}Http.ts` in this * service is a thin `Layer.effect(Cap, makeGroupHttpBinding({ … }))` over the * builder below. Everything except the operation and the IAM action list is * boilerplate: the runtime callable injects the bound * {@link AutoScalingGroup}'s `AutoScalingGroupName` into the request (the * serializer drops the field for the few operations that do not accept it — * those are authorized against the instance's owning group) and the * deploy-time half grants `actions` on the group ARN, or on `*` for * `Describe*` actions (EC2 Auto Scaling `Describe*` actions do not support * resource-level permissions). * * Genuinely-different bindings (multi-operation clients like * `CompleteLifecycleAction`, `Standby`, and `InstanceRefresh`, or custom * request shaping like `DescribeAutoScalingGroup`) stay bespoke. */ export declare const makeGroupHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.AutoScaling.SetDesiredCapacity`. */ tag: string; /** The distilled operation; `AutoScalingGroupName` is injected from the group. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted by the binding. */ actions: readonly string[]; /** * IAM resource scope. Write actions support resource-level permissions on * the group ARN (`"group"`, the default); `Describe*` actions do not * (`"*"`). */ resource?: "group" | "*"; }) => Effect.Effect<(group: AutoScalingGroup) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map