Skip to content
v2.275.0

StackSteps Struct ​

Instructions for additional steps that are run at stack level.

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 stackSteps: pipelines.StackSteps = {
  stack: stack,

  // the properties below are optional
  changeSet: [step],
  post: [step],
  pre: [step],
};

Properties ​

changeSetoptionalStep[]change_setoptionaltyping.List[Step]changeSetoptionalList<Step>ChangeSetoptionalStep[]ChangeSetoptional*[]Step#
Steps that execute after stack is prepared but before stack is deployed.

Default: no additional steps

postoptionalStep[]postoptionaltyping.List[Step]postoptionalList<Step>PostoptionalStep[]Postoptional*[]Step#
Steps that execute after stack is deployed.

Default: no additional steps

preoptionalStep[]preoptionaltyping.List[Step]preoptionalList<Step>PreoptionalStep[]Preoptional*[]Step#
Steps that execute before stack is prepared.

Default: no additional steps

stackStackstackStackstackStackStackStackStackStackrequired#
The stack you want the steps to run in.