class StageDeployment
Language | Type name |
---|---|
.NET | Amazon.CDK.Pipelines.StageDeployment |
Java | software.amazon.awscdk.pipelines.StageDeployment |
Python | aws_cdk.pipelines.StageDeployment |
TypeScript (source) | @aws-cdk/pipelines » StageDeployment |
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 * as cdk from '@aws-cdk/core';
import * as pipelines from '@aws-cdk/pipelines';
declare const stack: cdk.Stack;
declare const stage: cdk.Stage;
declare const step: pipelines.Step;
const stageDeployment = pipelines.StageDeployment.fromStage(stage, /* all optional props */ {
post: [step],
pre: [step],
stackSteps: [{
stack: stack,
// the properties below are optional
changeSet: [step],
post: [step],
pre: [step],
}],
stageName: 'stageName',
});
Properties
Name | Type | Description |
---|---|---|
post | Step [] | Additional steps that are run after all of the stacks in the stage. |
pre | Step [] | Additional steps that are run before any of the stacks in the stage. |
stack | Stack [] | Instructions for additional steps that are run at stack level. |
stacks | Stack [] | The stacks deployed in this stage. |
stage | string | The display name of this stage. |
post
Type:
Step
[]
Additional steps that are run after all of the stacks in the stage.
pre
Type:
Step
[]
Additional steps that are run before any of the stacks in the stage.
stackSteps
Type:
Stack
[]
Instructions for additional steps that are run at stack level.
stacks
Type:
Stack
[]
The stacks deployed in this stage.
stageName
Type:
string
The display name of this stage.
Methods
Name | Description |
---|---|
add | Add an additional step to run after all of the stacks in this stage. |
add | Add an additional step to run before any of the stacks in this stage. |
static from | Create a new StageDeployment from a Stage . |
Post(...steps)
addpublic addPost(...steps: Step[]): void
Parameters
- steps
Step
Add an additional step to run after all of the stacks in this stage.
Pre(...steps)
addpublic addPre(...steps: Step[]): void
Parameters
- steps
Step
Add an additional step to run before any of the stacks in this stage.
Stage(stage, props?)
static frompublic static fromStage(stage: Stage, props?: StageDeploymentProps): StageDeployment
Parameters
- stage
Stage
- props
Stage
Deployment Props
Returns
Create a new StageDeployment
from a Stage
.
Synthesizes the target stage, and deployes the stacks found inside in dependency order.