StackSteps

class aws_cdk.pipelines.StackSteps(*, stack, change_set=None, post=None, pre=None)

Bases: object

Instructions for additional steps that are run at stack level.

Parameters:
  • stack (Stack) – The stack you want the steps to run in.

  • change_set (Optional[Sequence[Step]]) – Steps that execute after stack is prepared but before stack is deployed. Default: - no additional steps

  • post (Optional[Sequence[Step]]) – Steps that execute after stack is deployed. Default: - no additional steps

  • pre (Optional[Sequence[Step]]) – Steps that execute before stack is prepared. Default: - no additional steps

ExampleMetadata:

fixture=_generated

Example:

# 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

stack_steps = pipelines.StackSteps(
    stack=stack,

    # the properties below are optional
    change_set=[step],
    post=[step],
    pre=[step]
)

Attributes

change_set

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

Default:
  • no additional steps

post

Steps that execute after stack is deployed.

Default:
  • no additional steps

pre

Steps that execute before stack is prepared.

Default:
  • no additional steps

stack

The stack you want the steps to run in.