import type * as SVC from "@distilled.cloud/aws/codepipeline"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Pipeline } from "./Pipeline.ts"; export interface RollbackStageRequest extends Omit< SVC.RollbackStageInput, "pipelineName" > {} /** * Runtime binding for `codepipeline:RollbackStage` — rolls a stage back to * the state of a previous successful execution (V2 pipelines). * ### Operating Stages * **Example:** Roll a Stage Back * ```typescript * const rollbackStage = yield* AWS.CodePipeline.RollbackStage(pipeline); * * yield* rollbackStage({ * stageName: "Deploy", * targetPipelineExecutionId: lastGoodExecutionId, * }); * ``` * * @binding */ export interface RollbackStage extends Binding.Service< RollbackStage, "AWS.CodePipeline.RollbackStage",

( pipeline: P, ) => Effect.Effect< ( request: RollbackStageRequest, ) => Effect.Effect > > {} export const RollbackStage = Binding.Service( "AWS.CodePipeline.RollbackStage", );