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

main
ts 42 lines 1.26 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/codepipeline";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Pipeline } from "./Pipeline.ts";
5
6 export interface StopPipelineExecutionRequest extends Omit<
7 SVC.StopPipelineExecutionInput,
8 "pipelineName"
9 > {}
10
11 /**
12 * Runtime binding for `codepipeline:StopPipelineExecution` — stops an
13 * in-progress execution, either finishing in-flight actions first or
14 * abandoning them (`abandon: true`).
15 * ### Running Pipelines
16 * **Example:** Stop an Execution
17 * ```typescript
18 * const stopExecution = yield* AWS.CodePipeline.StopPipelineExecution(pipeline);
19 *
20 * yield* stopExecution({
21 * pipelineExecutionId: executionId,
22 * abandon: true,
23 * reason: "superseded by hotfix",
24 * });
25 * ```
26 *
27 * @binding
28 */
29 export interface StopPipelineExecution extends Binding.Service<
30 StopPipelineExecution,
31 "AWS.CodePipeline.StopPipelineExecution",
32 <P extends Pipeline>(
33 pipeline: P,
34 ) => Effect.Effect<
35 (
36 request: StopPipelineExecutionRequest,
37 ) => Effect.Effect<SVC.StopPipelineExecutionOutput, SVC.StopPipelineExecutionError>
38 >
39 > {}
40 export const StopPipelineExecution = Binding.Service<StopPipelineExecution>(
41 "AWS.CodePipeline.StopPipelineExecution",
42 );