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
| 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 | |
| 5 | export interface PutJobSuccessResultRequest extends SVC.PutJobSuccessResultInput {} |
| 6 | |
| 7 | /** |
| 8 | * Runtime binding for `codepipeline:PutJobSuccessResult` — reports success |
| 9 | * for a job handed to the workload by a pipeline `Invoke` (Lambda) or |
| 10 | * custom action. Without this call the action times out. |
| 11 | * |
| 12 | * CodePipeline job operations do not support resource-level permissions, so |
| 13 | * the grant is on `*`. The binding takes no resource — the job id arrives |
| 14 | * with the invocation event. |
| 15 | * ### Job Workers |
| 16 | * **Example:** Complete an Invoke-Action Job |
| 17 | * ```typescript |
| 18 | * const putJobSuccess = yield* AWS.CodePipeline.PutJobSuccessResult(); |
| 19 | * |
| 20 | * yield* putJobSuccess({ |
| 21 | * jobId: event["CodePipeline.job"].id, |
| 22 | * outputVariables: { RELEASE: version }, |
| 23 | * }); |
| 24 | * ``` |
| 25 | * |
| 26 | * @binding |
| 27 | */ |
| 28 | export interface PutJobSuccessResult extends Binding.Service< |
| 29 | PutJobSuccessResult, |
| 30 | "AWS.CodePipeline.PutJobSuccessResult", |
| 31 | () => Effect.Effect< |
| 32 | ( |
| 33 | request: PutJobSuccessResultRequest, |
| 34 | ) => Effect.Effect<SVC.PutJobSuccessResultResponse, SVC.PutJobSuccessResultError> |
| 35 | > |
| 36 | > {} |
| 37 | export const PutJobSuccessResult = Binding.Service<PutJobSuccessResult>( |
| 38 | "AWS.CodePipeline.PutJobSuccessResult", |
| 39 | ); |