import type * as dataexchange from "@distilled.cloud/aws/dataexchange"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { DataSet } from "./DataSet.ts"; /** * Runtime binding for `dataexchange:SendApiAsset`. * * Invokes an API asset of an entitled `API_GATEWAY_API` data set — the * Data Exchange data plane proxies the request to the provider's API * Gateway. The data set id is injected from the binding; pass the * revision and asset ids of the API asset to call. * Provide the implementation with * `Effect.provide(AWS.DataExchange.SendApiAssetHttp)`. * ### Calling API Assets * **Example:** Call A Subscribed API Asset * ```typescript * const sendApiAsset = yield* AWS.DataExchange.SendApiAsset(dataSet); * * // runtime * const response = yield* sendApiAsset({ * RevisionId: revisionId, * AssetId: assetId, * Method: "GET", * Path: "/prices", * }); * ``` * * @binding */ export interface SendApiAsset extends Binding.Service Effect.Effect<(request: Omit) => Effect.Effect>> { } export declare const SendApiAsset: SendApiAsset; //# sourceMappingURL=SendApiAsset.d.ts.map