import * as Effect from "effect/Effect"; import type { Asset } from "./Asset.ts"; /** * Shared HTTP scaffolding for the AWS IoT SiteWise 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 the request * shaping is boilerplate. */ /** * Build the impl Effect for an IoT SiteWise operation scoped to one * {@link Asset}: the deploy-time half grants `iamActions` on the bound * asset's ARN, and the runtime half injects the asset's service-assigned id * into every request via `prepare`. * * Note: requests that identify the target data stream by `propertyAlias` * instead of `assetId`/`propertyId` authorize against the time-series * resource, which this asset-scoped grant does not cover. */ export declare const makeSiteWiseAssetHttpBinding: (options: { /** * Short capability name used in the binding sid and runtime span, e.g. * `"GetAssetPropertyValue"`. */ capability: string; /** IAM actions granted on the bound asset's ARN. */ iamActions: readonly string[]; /** The distilled operation implementing the capability. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** Map the public request shape + bound asset id onto the wire request. */ prepare: (request: Req, assetId: string) => I; }) => Effect.Effect<(asset: Asset) => Effect.Effect<(request: Req) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an account-level IoT SiteWise operation (e.g. * `ExecuteQuery`, which queries across all asset models and assets and is * not scoped to a single resource). Grants `iamActions` on * `Resource: ["*"]`. */ export declare const makeSiteWiseAccountHttpBinding: (options: { /** Short capability name used in the binding sid and runtime span. */ 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) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map