@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-13T01:13:40.888Z")
public class StageDeployment
extends software.amazon.jsii.JsiiObject
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());
Modifier | Constructor and Description |
---|---|
protected |
StageDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StageDeployment(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
void |
addPost(Step... steps)
Add an additional step to run after all of the stacks in this stage.
|
void |
addPre(Step... steps)
Add an additional step to run before any of the stacks in this stage.
|
static StageDeployment |
fromStage(Stage stage)
Create a new `StageDeployment` from a `Stage`.
|
static StageDeployment |
fromStage(Stage stage,
StageDeploymentProps props)
Create a new `StageDeployment` from a `Stage`.
|
java.util.List<Step> |
getPost()
Additional steps that are run after all of the stacks in the stage.
|
java.util.List<Step> |
getPre()
Additional steps that are run before any of the stacks in the stage.
|
java.util.List<StackDeployment> |
getStacks()
The stacks deployed in this stage.
|
java.util.List<StackSteps> |
getStackSteps()
Instructions for additional steps that are run at stack level.
|
java.lang.String |
getStageName()
The display name of this stage.
|
protected StageDeployment(software.amazon.jsii.JsiiObjectRef objRef)
protected StageDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static StageDeployment fromStage(Stage stage, StageDeploymentProps props)
Synthesizes the target stage, and deployes the stacks found inside in dependency order.
stage
- This parameter is required.props
- public static StageDeployment fromStage(Stage stage)
Synthesizes the target stage, and deployes the stacks found inside in dependency order.
stage
- This parameter is required.public void addPost(Step... steps)
steps
- This parameter is required.public void addPre(Step... steps)
steps
- This parameter is required.public java.util.List<Step> getPost()
public java.util.List<Step> getPre()
public java.util.List<StackDeployment> getStacks()
public java.util.List<StackSteps> getStackSteps()
public java.lang.String getStageName()