@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, 06:00 UTC

main
ts 39 lines 1.37 KB
Raw
1 import type * as osis from "@distilled.cloud/aws/osis";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `osis:GetPipelineBlueprint`.
7 *
8 * Retrieves one Data Prepper blueprint's full configuration template so
9 * config-authoring tooling can render or specialize it (pair with
10 * {@link ListPipelineBlueprints} to discover blueprint names). Account-level:
11 * no resource argument. Provide the implementation with
12 * `Effect.provide(AWS.OSIS.GetPipelineBlueprintHttp)`.
13 * ### Authoring Pipeline Configurations
14 * **Example:** Fetch a Blueprint's Template
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const getPipelineBlueprint = yield* AWS.OSIS.GetPipelineBlueprint();
18 *
19 * // runtime
20 * const { Blueprint } = yield* getPipelineBlueprint({
21 * BlueprintName: "AWS-ApacheLogPipeline",
22 * });
23 * // Blueprint?.PipelineConfigurationBody — the YAML template
24 * ```
25 *
26 * @binding
27 */
28 export interface GetPipelineBlueprint extends Binding.Service<
29 GetPipelineBlueprint,
30 "AWS.OSIS.GetPipelineBlueprint",
31 () => Effect.Effect<
32 (
33 request: osis.GetPipelineBlueprintRequest,
34 ) => Effect.Effect<osis.GetPipelineBlueprintResponse, osis.GetPipelineBlueprintError>
35 >
36 > {}
37 export const GetPipelineBlueprint = Binding.Service<GetPipelineBlueprint>(
38 "AWS.OSIS.GetPipelineBlueprint",
39 );