| 1 | import type * as SVC from "@distilled.cloud/aws/codebuild"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Project } from "./Project.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `codebuild:StopSandbox` — stops a running sandbox of |
| 8 | * the bound project by sandbox id. |
| 9 | * ### Sandboxes |
| 10 | * **Example:** Stop a Sandbox |
| 11 | * ```typescript |
| 12 | * const stopSandbox = yield* AWS.CodeBuild.StopSandbox(project); |
| 13 | * |
| 14 | * yield* stopSandbox({ id: sandboxId }); |
| 15 | * ``` |
| 16 | * |
| 17 | * @binding |
| 18 | */ |
| 19 | export interface StopSandbox extends Binding.Service< |
| 20 | StopSandbox, |
| 21 | "AWS.CodeBuild.StopSandbox", |
| 22 | <P extends Project>( |
| 23 | project: P, |
| 24 | ) => Effect.Effect< |
| 25 | ( |
| 26 | request: SVC.StopSandboxInput, |
| 27 | ) => Effect.Effect<SVC.StopSandboxOutput, SVC.StopSandboxError> |
| 28 | > |
| 29 | > {} |
| 30 | export const StopSandbox = Binding.Service<StopSandbox>( |
| 31 | "AWS.CodeBuild.StopSandbox", |
| 32 | ); |