aws-cdk-lib.pipelines.StackSteps

interface StackSteps

LanguageType name
.NETAmazon.CDK.Pipelines.StackSteps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/pipelines#StackSteps
Javasoftware.amazon.awscdk.pipelines.StackSteps
Pythonaws_cdk.pipelines.StackSteps
TypeScript (source)aws-cdk-lib » pipelines » StackSteps

Instructions for additional steps that are run at stack level.

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-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

NameTypeDescription
stackStackThe stack you want the steps to run in.
changeSet?Step[]Steps that execute after stack is prepared but before stack is deployed.
post?Step[]Steps that execute after stack is deployed.
pre?Step[]Steps that execute before stack is prepared.

stack

Type: Stack

The stack you want the steps to run in.


changeSet?

Type: Step[] (optional, default: no additional steps)

Steps that execute after stack is prepared but before stack is deployed.


post?

Type: Step[] (optional, default: no additional steps)

Steps that execute after stack is deployed.


pre?

Type: Step[] (optional, default: no additional steps)

Steps that execute before stack is prepared.