aws-cdk-lib.pipelines.AddStageOpts

interface AddStageOpts

LanguageType name
.NETAmazon.CDK.Pipelines.AddStageOpts
Gogithub.com/aws/aws-cdk-go/awscdk/v2/pipelines#AddStageOpts
Javasoftware.amazon.awscdk.pipelines.AddStageOpts
Pythonaws_cdk.pipelines.AddStageOpts
TypeScript (source)aws-cdk-lib » pipelines » AddStageOpts

Options to pass to addStage.

Example

declare const pipeline: pipelines.CodePipeline;
const preprod = new MyApplicationStage(this, 'PreProd');
const prod = new MyApplicationStage(this, 'Prod');

pipeline.addStage(preprod, {
  post: [
    new pipelines.ShellStep('Validate Endpoint', {
      commands: ['curl -Ssf https://my.webservice.com/'],
    }),
  ],
});
pipeline.addStage(prod, {
  pre: [
    new pipelines.ManualApprovalStep('PromoteToProd'),
  ],
});

Properties

NameTypeDescription
post?Step[]Additional steps to run after all of the stacks in the stage.
pre?Step[]Additional steps to run before any of the stacks in the stage.
stackSteps?StackSteps[]Instructions for stack level steps.

post?

Type: Step[] (optional, default: No additional steps)

Additional steps to run after all of the stacks in the stage.


pre?

Type: Step[] (optional, default: No additional steps)

Additional steps to run before any of the stacks in the stage.


stackSteps?

Type: StackSteps[] (optional, default: No additional instructions)

Instructions for stack level steps.