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

main
ts 37 lines 1.15 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 GetListingRequest extends Omit<datazone.GetListingInput, "domainIdentifier"> {}
7
8 /**
9 * Runtime binding for `datazone:GetListing`.
10 *
11 * Reads a published listing in the bound domain by id. The domain id is injected from the binding.
12 * Provide the implementation with
13 * `Effect.provide(AWS.DataZone.GetListingHttp)`.
14 * ### Searching the Catalog
15 * **Example:** Read a Listing
16 * ```typescript
17 * // init — bind the operation to the domain
18 * const getListing = yield* AWS.DataZone.GetListing(domain);
19 *
20 * // runtime
21 * const listing = yield* getListing({ identifier: listingId });
22 * ```
23 *
24 * @binding
25 */
26 export interface GetListing extends Binding.Service<
27 GetListing,
28 "AWS.DataZone.GetListing",
29 (
30 domain: Domain,
31 ) => Effect.Effect<
32 (
33 request: GetListingRequest,
34 ) => Effect.Effect<datazone.GetListingOutput, datazone.GetListingError>
35 >
36 > {}
37 export const GetListing = Binding.Service<GetListing>("AWS.DataZone.GetListing");