@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 36 lines 1.25 KB
Raw
1 import type * as appregistry from "@distilled.cloud/aws/service-catalog-appregistry";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * Runtime binding for `servicecatalog:GetApplication`.
8 *
9 * Reads the bound application's metadata — description, tags, the
10 * `awsApplication` tag value, integrations, and the associated resource
11 * count. Provide the implementation with
12 * `Effect.provide(AWS.AppRegistry.GetApplicationHttp)`.
13 * ### Reading Application Metadata
14 * **Example:** Read the Application at Runtime
15 * ```typescript
16 * // init — bind the operation to the application
17 * const getApplication = yield* AWS.AppRegistry.GetApplication(app);
18 *
19 * // runtime
20 * const details = yield* getApplication();
21 * console.log(details.name, details.associatedResourceCount);
22 * ```
23 *
24 * @binding
25 */
26 export interface GetApplication extends Binding.Service<
27 GetApplication,
28 "AWS.AppRegistry.GetApplication",
29 (
30 application: Application,
31 ) => Effect.Effect<
32 () => Effect.Effect<appregistry.GetApplicationResponse, appregistry.GetApplicationError>
33 >
34 > {}
35
36 export const GetApplication = Binding.Service<GetApplication>("AWS.AppRegistry.GetApplication");