@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 35 lines 1.13 KB
Raw
1 import type * as datazone from "@distilled.cloud/aws/datazone";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Domain } from "./Domain.ts";
5
6 export interface GetAssetRequest extends Omit<datazone.GetAssetInput, "domainIdentifier"> {}
7
8 /**
9 * Runtime binding for `datazone:GetAsset`.
10 *
11 * Reads an asset in the bound domain — its forms, glossary terms, and latest revision. The domain id is injected from the binding.
12 * Provide the implementation with
13 * `Effect.provide(AWS.DataZone.GetAssetHttp)`.
14 * ### Searching the Catalog
15 * **Example:** Read an Asset
16 * ```typescript
17 * // init — bind the operation to the domain
18 * const getAsset = yield* AWS.DataZone.GetAsset(domain);
19 *
20 * // runtime
21 * const asset = yield* getAsset({ identifier: assetId });
22 * ```
23 *
24 * @binding
25 */
26 export interface GetAsset extends Binding.Service<
27 GetAsset,
28 "AWS.DataZone.GetAsset",
29 (
30 domain: Domain,
31 ) => Effect.Effect<
32 (request: GetAssetRequest) => Effect.Effect<datazone.GetAssetOutput, datazone.GetAssetError>
33 >
34 > {}
35 export const GetAsset = Binding.Service<GetAsset>("AWS.DataZone.GetAsset");