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-12-06T14:43:28.740Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAddStageOpts
static final class
An implementation forAddStageOpts
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddStageOpts.Builder
builder()
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.Builder
ofAddStageOpts
-