import * as Effect from "effect/Effect"; import type { AnomalyMonitor } from "./AnomalyMonitor.ts"; import type { CostCategory } from "./CostCategory.ts"; /** * Shared HTTP scaffolding for the Cost Explorer runtime 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, the IAM action, and (for the * scoped builders) the injected ARN is boilerplate. * * Cost Explorer is a global service served exclusively from the `us-east-1` * endpoint, so every operation is resolved with the Region pinned via * {@link pinCe} — exactly like the resource providers in `common.ts`. * * Per the `ce` service authorization reference, most query actions support * no resource types, so the account-level builder grants on * `Resource: ["*"]`. `ce:GetAnomalies` authorizes on the `anomalymonitor` * resource type, so the anomaly-monitor builder grants on the bound * monitor's ARN. */ /** * Build the impl Effect for an account-level Cost Explorer operation (the * cost/usage queries, forecasts, recommendations, and cost allocation tag * operations — none of which are resource-scoped). */ export declare const makeCostExplorerHttpBinding: (options: { /** * Short capability name used in the binding sid and runtime span, e.g. * `"GetCostAndUsage"`. */ capability: string; /** IAM actions granted on `Resource: ["*"]`. */ iamActions: readonly string[]; /** The distilled operation implementing the capability. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; }) => Effect.Effect<() => Effect.Effect<(request?: I | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an operation scoped to one * {@link AnomalyMonitor}. The runtime callable injects the bound monitor's * ARN as the request's `MonitorArn`; the deploy-time half grants * `iamActions` on the monitor's ARN. */ export declare const makeAnomalyMonitorHttpBinding: (options: { /** * Short capability name used in the binding sid and runtime span, e.g. * `"GetAnomalies"`. */ capability: string; /** IAM actions granted on the monitor ARN. */ iamActions: readonly string[]; /** The distilled operation; `MonitorArn` is injected. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; }) => Effect.Effect<(monitor: AnomalyMonitor) => Effect.Effect<(request: Omit) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an operation bound to one {@link CostCategory}. * The runtime callable injects the bound category's ARN as the request's * `CostCategoryArn`. The deploy-time half grants `iamActions` on * `Resource: ["*"]` — per the `ce` service authorization reference, * `ce:ListCostCategoryResourceAssociations` supports no resource types, so * a grant scoped to the category ARN would never match. */ export declare const makeCostCategoryHttpBinding: (options: { /** * Short capability name used in the binding sid and runtime span, e.g. * `"ListCostCategoryResourceAssociations"`. */ capability: string; /** IAM actions granted on `Resource: ["*"]` (no resource types). */ iamActions: readonly string[]; /** The distilled operation; `CostCategoryArn` is injected. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; }) => Effect.Effect<(category: CostCategory) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map