import * as Effect from "effect/Effect"; import type { WirelessDevice } from "./WirelessDevice.ts"; import type { WirelessGateway } from "./WirelessGateway.ts"; /** * Shared HTTP scaffolding for the AWS IoT Wireless 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 Wireless operation scoped to one * {@link WirelessDevice}: the deploy-time half grants `iamActions` on the * bound device's ARN, and the runtime half injects the device's * server-assigned id into every request via `prepare`. */ export declare const makeIotWirelessDeviceHttpBinding: (options: { /** * Short capability name used in the binding sid and runtime span, e.g. * `"SendDataToWirelessDevice"`. */ capability: string; /** IAM actions granted on the bound device'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 device id onto the wire request. */ prepare: (request: Req, wirelessDeviceId: string) => I; /** * IAM resource scope. Defaults to the bound device's ARN. The position * operations (`GetResourcePosition` / `UpdateResourcePosition`) must use * `"any"`: IoT Wireless authorizes them against a type-level ARN * (`…:WirelessDevice/WirelessDevice`, built from the `resourceType` * query parameter), which the device ARN never matches. */ resourceScope?: "device" | "any"; }) => Effect.Effect<(device: WirelessDevice) => Effect.Effect<(request: Req) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an IoT Wireless operation scoped to one * {@link WirelessGateway}: the deploy-time half grants `iamActions` on the * bound gateway's ARN, and the runtime half injects the gateway's * server-assigned id into every request via `prepare`. */ export declare const makeIotWirelessGatewayHttpBinding: (options: { /** Short capability name used in the binding sid and runtime span. */ capability: string; /** IAM actions granted on the bound gateway'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 gateway id onto the wire request. */ prepare: (request: Req, wirelessGatewayId: string) => I; }) => Effect.Effect<(gateway: WirelessGateway) => Effect.Effect<(request: Req) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an account-level IoT Wireless operation (e.g. * `GetServiceEndpoint` or `GetPositionEstimate`, which are not scoped to a * single resource). Grants `iamActions` on `Resource: ["*"]`. */ export declare const makeIotWirelessAccountHttpBinding: (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>; /** Map the public request shape onto the wire request. */ prepare: (request: Req) => I; }) => Effect.Effect<() => Effect.Effect<(request: Req) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map