import * as Effect from "effect/Effect"; import type { Output as OutputType } from "../../Output.ts"; import type { DataSet } from "./DataSet.ts"; import type { Revision } from "./Revision.ts"; /** * Shared scaffolding for AWS Data Exchange HTTP bindings. * * NOT exported from `index.ts` — every thin `{Op}Http.ts` in this service is * a `Layer.effect(Cap, make…HttpBinding({ … }))` over one of the three * builders below. Everything except the operation, the IAM action list, and * the granted ARNs is boilerplate: the runtime callable injects `DataSetId` * (and `RevisionId` for revision-scoped operations) from the bound resource. */ /** The bound data set's own ARN (data-set-level actions). */ export declare const dataSetArns: (dataSet: DataSet) => OutputType[]; /** * ARN matching every asset in the bound data set * (`arn:…:data-sets/{id}/revisions/star/assets/star`) — asset-level actions * like `dataexchange:SendApiAsset` authorize against the asset resource. */ export declare const dataSetAssetArns: (dataSet: DataSet) => OutputType[]; /** * The bound data set's ARN plus a wildcard over every sub-resource * (`arn:…:data-sets/{id}` and `arn:…:data-sets/{id}/star`) — IAM wildcards * match across `/`, so one pattern covers revisions and assets alike. Used * by the revision/asset data-plane bindings that receive `RevisionId` and * `AssetId` at runtime (e.g. a Lambda that publishes a fresh revision on a * schedule needs the grant to cover revisions that do not exist yet). */ export declare const dataSetAndSubresourceArns: (dataSet: DataSet) => OutputType[]; /** The bound revision's own ARN (revision-level actions). */ export declare const revisionArns: (revision: Revision) => OutputType[]; /** * ARN matching every asset in the bound revision * (`arn:…:data-sets/{ds}/revisions/{rev}/assets/star`) — asset-level * actions like `dataexchange:GetAsset` authorize against the asset resource. */ export declare const revisionAssetArns: (revision: Revision) => OutputType[]; /** * Build the impl Effect for a Data Exchange operation scoped to a * {@link DataSet}: the deploy-time half grants `actions` on `resources` * (default: the data set's ARN), and the runtime half injects the data set's * `DataSetId` into every request. */ export declare const makeDataSetHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.DataExchange.GetDataSet`. */ tag: string; /** The distilled operation. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on `resources`. */ actions: readonly string[]; /** ARNs the actions are granted on. @default the data set ARN */ resources?: (dataSet: DataSet) => OutputType[]; }) => Effect.Effect<(dataSet: DataSet) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for a Data Exchange operation scoped to a * {@link Revision}: the deploy-time half grants `actions` on `resources` * (default: the revision's ARN), and the runtime half injects the revision's * `DataSetId` and `RevisionId` into every request. */ export declare const makeRevisionHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.DataExchange.GetRevision`. */ tag: string; /** The distilled operation. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on `resources`. */ actions: readonly string[]; /** ARNs the actions are granted on. @default the revision ARN */ resources?: (revision: Revision) => OutputType[]; }) => Effect.Effect<(revision: Revision) => Effect.Effect<(request?: Omit | undefined) => Effect.Effect, never, never>, never, R>; /** * Build the impl Effect for an account-level Data Exchange operation (jobs, * data grants, enumerations). The deploy-time half grants `actions` on `*` * — jobs and data grants are account-scoped resources whose ids only exist * at runtime, so there is no resource ARN to scope down to. */ export declare const makeDataExchangeAccountHttpBinding: (options: { /** Fully-qualified binding tag, e.g. `AWS.DataExchange.ListDataSets`. */ tag: string; /** The distilled operation, invoked with the caller's request as-is. */ operation: Effect.Effect<(input: I) => Effect.Effect, never, R>; /** IAM actions granted on `*`. */ actions: readonly string[]; }) => Effect.Effect<() => Effect.Effect<(request?: I | undefined) => Effect.Effect, never, never>, never, R>; //# sourceMappingURL=BindingHttp.d.ts.map