The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type * as dataexchange from "@distilled.cloud/aws/dataexchange"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Revision } from "./Revision.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `dataexchange:UpdateAsset`. |
| 8 | * |
| 9 | * Renames an asset of the bound revision (the asset name is the S3 key |
| 10 | * used when subscribers export it). The data set and revision ids are |
| 11 | * injected from the binding. |
| 12 | * Provide the implementation with |
| 13 | * `Effect.provide(AWS.DataExchange.UpdateAssetHttp)`. |
| 14 | * ### Managing Assets |
| 15 | * **Example:** Rename An Imported Asset |
| 16 | * ```typescript |
| 17 | * const updateAsset = yield* AWS.DataExchange.UpdateAsset(revision); |
| 18 | * |
| 19 | * // runtime |
| 20 | * yield* updateAsset({ AssetId: assetId, Name: "prices/2026-07-14.csv" }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface UpdateAsset extends Binding.Service< |
| 26 | UpdateAsset, |
| 27 | "AWS.DataExchange.UpdateAsset", |
| 28 | ( |
| 29 | revision: Revision, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request: Omit<dataexchange.UpdateAssetRequest, "DataSetId" | "RevisionId">, |
| 33 | ) => Effect.Effect<dataexchange.UpdateAssetResponse, dataexchange.UpdateAssetError> |
| 34 | > |
| 35 | > {} |
| 36 | export const UpdateAsset = Binding.Service<UpdateAsset>("AWS.DataExchange.UpdateAsset"); |