Package software.amazon.awscdk.pipelines
Interface AddStageOpts
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AddStageOpts.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:17.675Z")
@Stability(Stable)
public interface AddStageOpts
extends software.amazon.jsii.JsiiSerializable
Options to pass to
addStage.
Example:
CodePipeline pipeline;
MyApplicationStage preprod = new MyApplicationStage(this, "PreProd");
MyApplicationStage prod = new MyApplicationStage(this, "Prod");
pipeline.addStage(preprod, AddStageOpts.builder()
.post(List.of(
ShellStep.Builder.create("Validate Endpoint")
.commands(List.of("curl -Ssf https://my.webservice.com/"))
.build()))
.build());
pipeline.addStage(prod, AddStageOpts.builder()
.pre(List.of(new ManualApprovalStep("PromoteToProd")))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAddStageOptsstatic final classAn implementation forAddStageOpts -
Method Summary
Modifier and TypeMethodDescriptionstatic AddStageOpts.Builderbuilder()getPost()Additional steps to run after all of the stacks in the stage.getPre()Additional steps to run before any of the stacks in the stage.default List<StackSteps>Instructions for stack level steps.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPost
Additional steps to run after all of the stacks in the stage.Default: - No additional steps
-
getPre
Additional steps to run before any of the stacks in the stage.Default: - No additional steps
-
getStackSteps
Instructions for stack level steps.Default: - No additional instructions
-
builder
- Returns:
- a
AddStageOpts.BuilderofAddStageOpts
-