Wave

class aws_cdk.pipelines.Wave(id, *, post=None, pre=None)

Bases: object

Multiple stages that are deployed in parallel.

ExampleMetadata

infused

Example:

# pipeline: pipelines.CodePipeline

europe_wave = pipeline.add_wave("Europe")
europe_wave.add_stage(MyApplicationStage(self, "Ireland",
    env=cdk.Environment(region="eu-west-1")
))
europe_wave.add_stage(MyApplicationStage(self, "Germany",
    env=cdk.Environment(region="eu-central-1")
))
Parameters
  • id (str) – Identifier for this Wave.

  • post (Optional[Sequence[Step]]) – Additional steps to run after all of the stages in the wave. Default: - No additional steps

  • pre (Optional[Sequence[Step]]) – Additional steps to run before any of the stages in the wave. Default: - No additional steps

Methods

add_post(*steps)

Add an additional step to run after all of the stages in this wave.

Parameters

steps (Step) –

Return type

None

add_pre(*steps)

Add an additional step to run before any of the stages in this wave.

Parameters

steps (Step) –

Return type

None

add_stage(stage, *, post=None, pre=None, stack_steps=None)

Add a Stage to this wave.

It will be deployed in parallel with all other stages in this wave.

Parameters
  • stage (Stage) –

  • post (Optional[Sequence[Step]]) – Additional steps to run after all of the stacks in the stage. Default: - No additional steps

  • pre (Optional[Sequence[Step]]) – Additional steps to run before any of the stacks in the stage. Default: - No additional steps

  • stack_steps (Optional[Sequence[Union[StackSteps, Dict[str, Any]]]]) – Instructions for stack level steps. Default: - No additional instructions

Return type

StageDeployment

Attributes

id

Identifier for this Wave.

Return type

str

post

Additional steps that are run after all of the stages in the wave.

Return type

List[Step]

pre

Additional steps that are run before any of the stages in the wave.

Return type

List[Step]

stages

The stages that are deployed in this wave.

Return type

List[StageDeployment]