import * as Effect from "effect/Effect"; import type { Role } from "../IAM/Role.ts"; import type { FHIRDatastore } from "./FHIRDatastore.ts"; /** * Shared scaffolding for AWS HealthLake HTTP 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 and the IAM action list is * boilerplate: every HealthLake job operation is scoped to one FHIR data * store, whose id is injected as `DatastoreId` and whose ARN receives the * grant. The `Start*Job` operations additionally inject the bound * data-access role and a scoped `iam:PassRole` grant. */ /** * Build the impl Effect for a data-store-scoped HealthLake operation * (describe/list import and export jobs): the runtime callable injects the * bound {@link FHIRDatastore}'s id as `DatastoreId` and the deploy-time half * grants `actions` on the data store ARN. */ export declare const makeHealthLakeDatastoreHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.HealthLake.DescribeFHIRImportJob`. */ tag: string; /** The distilled operation; `DatastoreId` is injected from the data store. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the data store ARN. */ actions: readonly string[]; }) => Effect.Effect<(datastore: FHIRDatastore) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for a HealthLake `Start*Job` operation: the binding * is constructed with the {@link FHIRDatastore} **and the data-access role** * (the IAM role HealthLake assumes to read/write the S3 locations; its trust * policy must allow `healthlake.amazonaws.com`). The runtime callable injects * the data store id as `DatastoreId` and the role's ARN as * `DataAccessRoleArn`; the deploy-time half grants `actions` on the data * store ARN plus `iam:PassRole` on the role — without the PassRole grant, * `Start*Job` fails only at runtime with an AccessDeniedException. */ export declare const makeHealthLakeStartJobHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.HealthLake.StartFHIRExportJob`. */ tag: string; /** * The distilled operation; `DatastoreId` and `DataAccessRoleArn` are * injected from the bound resources. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on the data store ARN. */ actions: readonly string[]; }) => Effect.Effect<(datastore: FHIRDatastore, dataAccessRole: Role) => Effect.Effect<(request: Omit & { DataAccessRoleArn?: string; }) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map