aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
52 lines (51 loc) • 1.72 kB
TypeScript
import { FullActionDescriptor } from './full-action-descriptor';
import * as events from '../../../aws-events';
import { IAction, IPipeline, IStage } from '../action';
import { CfnPipeline } from '../codepipeline.generated';
import { Pipeline, StageProps } from '../pipeline';
/**
* A Stage in a Pipeline.
*
* Stages are added to a Pipeline by calling `Pipeline#addStage`,
* which returns an instance of `codepipeline.IStage`.
*
* This class is private to the CodePipeline module.
*/
export declare class Stage implements IStage {
/**
* The Pipeline this Stage is a part of.
*/
readonly stageName: string;
readonly transitionToEnabled: boolean;
readonly transitionDisabledReason: string;
private readonly beforeEntry?;
private readonly onSuccess?;
private readonly onFailure?;
private readonly scope;
private readonly _pipeline;
private readonly _actions;
/**
* Create a new Stage.
*/
constructor(props: StageProps, pipeline: Pipeline);
/**
* Get a duplicate of this stage's list of actions.
*/
get actionDescriptors(): FullActionDescriptor[];
get actions(): IAction[];
get pipeline(): IPipeline;
render(): CfnPipeline.StageDeclarationProperty;
addAction(action: IAction): void;
onStateChange(name: string, target?: events.IRuleTarget, options?: events.RuleProps): events.Rule;
validate(): string[];
private validateHasActions;
private validateActions;
private validateAction;
private attachActionToPipeline;
private renderAction;
private renderArtifacts;
private renderBeforeEntry;
private renderOnSuccess;
private renderOnFailure;
private getConditions;
}