interface AddStageOpts
Language | Type name |
---|---|
![]() | Amazon.CDK.Pipelines.AddStageOpts |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/pipelines#AddStageOpts |
![]() | software.amazon.awscdk.pipelines.AddStageOpts |
![]() | aws_cdk.pipelines.AddStageOpts |
![]() | 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
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.