StageDeploymentProps Struct
Properties for a StageDeployment.
| Source | pipelines/lib/blueprint/stage-deployment.ts |
|---|
Example
ts
// 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-lib';
import { pipelines } from 'aws-cdk-lib';
declare const stack: cdk.Stack;
declare const step: pipelines.Step;
const stageDeploymentProps: pipelines.StageDeploymentProps = {
post: [step],
pre: [step],
stackSteps: [{
stack: stack,
// the properties below are optional
changeSet: [step],
post: [step],
pre: [step],
}],
stageName: 'stageName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import pipelines
# stack: cdk.Stack
# step: pipelines.Step
stage_deployment_props = pipelines.StageDeploymentProps(
post=[step],
pre=[step],
stack_steps=[pipelines.StackSteps(
stack=stack,
# the properties below are optional
change_set=[step],
post=[step],
pre=[step]
)],
stage_name="stageName"
)
java
// 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;
Step step;
StageDeploymentProps stageDeploymentProps = 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.Pipelines;
Stack stack;
Step step;
var stageDeploymentProps = new StageDeploymentProps {
Post = new [] { step },
Pre = new [] { step },
StackSteps = new [] { new StackSteps {
Stack = stack,
// the properties below are optional
ChangeSet = new [] { step },
Post = new [] { step },
Pre = new [] { step }
} },
StageName = "stageName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var stack Stack
var step Step
stageDeploymentProps := &StageDeploymentProps{
Post: []Step{
step,
},
Pre: []Step{
step,
},
StackSteps: []StackSteps{
&StackSteps{
Stack: stack,
// the properties below are optional
ChangeSet: []Step{
step,
},
Post: []Step{
step,
},
Pre: []Step{
step,
},
},
},
StageName: jsii.String("stageName"),
}
Properties
postoptionalStep[]postoptionaltyping.List[Step]postoptionalList<Step>PostoptionalStep[]Postoptional*[]Step #Additional steps to run after all of the stacks in the stage.
Default: No additional steps
preoptionalStep[]preoptionaltyping.List[Step]preoptionalList<Step>PreoptionalStep[]Preoptional*[]Step #Additional steps to run before any of the stacks in the stage.
Default: No additional steps
stackStepsoptionalStackSteps[]stack_stepsoptionaltyping.List[StackSteps]stackStepsoptionalList<StackSteps>StackStepsoptionalStackSteps[]StackStepsoptional*[]StackSteps #Instructions for additional steps that are run at the stack level.
Default: No additional instructions
stageNameoptionalstringstage_nameoptionalstrstageNameoptionalStringStageNameoptionalstringStageNameoptional*string #Stage name to use in the pipeline.
Default: Use Stage's construct ID