@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.946Z") @Stability(value=Stable) 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.*;
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`.
|
List<Step> |
getPost()
Additional steps that are run after all of the stacks in the stage.
|
List<Step> |
getPre()
Additional steps that are run before any of the stacks in the stage.
|
List<StackDeployment> |
getStacks()
The stacks deployed in this stage.
|
List<StackSteps> |
getStackSteps()
Instructions for additional steps that are run at stack level.
|
String |
getStageName()
The display name of this stage.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected StageDeployment(software.amazon.jsii.JsiiObjectRef objRef)
protected StageDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static StageDeployment fromStage(@NotNull Stage stage, @Nullable StageDeploymentProps props)
Synthesizes the target stage, and deployes the stacks found inside in dependency order.
stage - This parameter is required.props - @Stability(value=Stable) @NotNull public static StageDeployment fromStage(@NotNull Stage stage)
Synthesizes the target stage, and deployes the stacks found inside in dependency order.
stage - This parameter is required.@Stability(value=Stable)
public void addPost(@NotNull
Step... steps)
steps - This parameter is required.@Stability(value=Stable)
public void addPre(@NotNull
Step... steps)
steps - This parameter is required.@Stability(value=Stable) @NotNull public List<Step> getPost()
@Stability(value=Stable) @NotNull public List<Step> getPre()
@Stability(value=Stable) @NotNull public List<StackDeployment> getStacks()
@Stability(value=Stable) @NotNull public List<StackSteps> getStackSteps()
@Stability(value=Stable) @NotNull public String getStageName()
Copyright © 2022. All rights reserved.