| 1 | import type * as SVC from "@distilled.cloud/aws/codepipeline"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Pipeline } from "./Pipeline.ts"; |
| 5 | |
| 6 | export interface ListRuleExecutionsRequest extends Omit< |
| 7 | SVC.ListRuleExecutionsInput, |
| 8 | "pipelineName" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `codepipeline:ListRuleExecutions` — enumerates the |
| 13 | * execution history of stage-condition rules (V2 pipelines). |
| 14 | * ### Observing Pipelines |
| 15 | * **Example:** List Rule Executions |
| 16 | * ```typescript |
| 17 | * const listRules = yield* AWS.CodePipeline.ListRuleExecutions(pipeline); |
| 18 | * |
| 19 | * const { ruleExecutionDetails } = yield* listRules(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListRuleExecutions extends Binding.Service< |
| 25 | ListRuleExecutions, |
| 26 | "AWS.CodePipeline.ListRuleExecutions", |
| 27 | <P extends Pipeline>( |
| 28 | pipeline: P, |
| 29 | ) => Effect.Effect< |
| 30 | ( |
| 31 | request?: ListRuleExecutionsRequest, |
| 32 | ) => Effect.Effect< |
| 33 | SVC.ListRuleExecutionsOutput, |
| 34 | SVC.ListRuleExecutionsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const ListRuleExecutions = Binding.Service<ListRuleExecutions>( |
| 39 | "AWS.CodePipeline.ListRuleExecutions", |
| 40 | ); |