interface AddStageOpts
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Pipelines.AddStageOpts |
Java | software.amazon.awscdk.pipelines.AddStageOpts |
Python | aws_cdk.pipelines.AddStageOpts |
TypeScript (source) | @aws-cdk/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
| Name | Type | Description |
|---|---|---|
| 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. |
| stack | Stack[] | 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:
Stack[]
(optional, default: No additional instructions)
Instructions for stack level steps.

.NET
Java
Python
TypeScript (