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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.896Z")
@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.core.*; 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
ModifierConstructorDescriptionprotected
StageDeployment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
StageDeployment
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an additional step to run after all of the stacks in this stage.void
Add an additional step to run before any of the stacks in this stage.static StageDeployment
Create a newStageDeployment
from aStage
.static StageDeployment
fromStage
(Stage stage, StageDeploymentProps props) Create a newStageDeployment
from 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.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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 newStageDeployment
from aStage
.Synthesizes the target stage, and deployes the stacks found inside in dependency order.
- Parameters:
stage
- This parameter is required.props
-
-
fromStage
Create a newStageDeployment
from 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.
-