Package software.amazon.awscdk.pipelines
Class StageDeployment
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.pipelines.StageDeployment
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:22.657Z")
@Stability(Stable)
public class StageDeployment
extends software.amazon.jsii.JsiiObject
Deployment of a single
Stage.
A Stage consists of one or more Stacks, which will be
deployed in dependency order.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.pipelines.*;
Stack stack;
Stage stage;
Step step;
StageDeployment stageDeployment = StageDeployment.fromStage(stage, StageDeploymentProps.builder()
.post(List.of(step))
.pre(List.of(step))
.stackSteps(List.of(StackSteps.builder()
.stack(stack)
// the properties below are optional
.changeSet(List.of(step))
.post(List.of(step))
.pre(List.of(step))
.build()))
.stageName("stageName")
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStageDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedStageDeployment(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an additional step to run after all of the stacks in this stage.voidAdd an additional step to run before any of the stacks in this stage.static StageDeploymentCreate a newStageDeploymentfrom aStage.static StageDeploymentfromStage(Stage stage, StageDeploymentProps props) Create a newStageDeploymentfrom aStage.getPost()Additional steps that are run after all of the stacks in the stage.getPre()Additional steps that are run before any of the stacks in the stage.Determine if all stacks in stage should be deployed with prepare step or not.The stacks deployed in this stage.Instructions for additional steps that are run at stack level.The display name of this stage.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
StageDeployment
protected StageDeployment(software.amazon.jsii.JsiiObjectRef objRef) -
StageDeployment
protected StageDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromStage
@Stability(Stable) @NotNull public static StageDeployment fromStage(@NotNull Stage stage, @Nullable StageDeploymentProps props) Create a newStageDeploymentfrom aStage.Synthesizes the target stage, and deployes the stacks found inside in dependency order.
- Parameters:
stage- This parameter is required.props-
-
fromStage
Create a newStageDeploymentfrom aStage.Synthesizes the target stage, and deployes the stacks found inside in dependency order.
- Parameters:
stage- This parameter is required.
-
addPost
Add an additional step to run after all of the stacks in this stage.- Parameters:
steps- This parameter is required.
-
addPre
Add an additional step to run before any of the stacks in this stage.- Parameters:
steps- This parameter is required.
-
getPost
Additional steps that are run after all of the stacks in the stage. -
getPre
Additional steps that are run before any of the stacks in the stage. -
getStacks
The stacks deployed in this stage. -
getStackSteps
Instructions for additional steps that are run at stack level. -
getStageName
The display name of this stage. -
getPrepareStep
Determine if all stacks in stage should be deployed with prepare step or not.
-