aws-cdk-lib.pipelines.WaveOptions

interface WaveOptions

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

Options to pass to addWave.

Example

const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
  synth: new pipelines.ShellStep('Synth', {
    input: pipelines.CodePipelineSource.connection('my-org/my-app', 'main', {
      connectionArn: 'arn:aws:codestar-connections:us-east-1:222222222222:connection/7d2469ff-514a-4e4f-9003-5ca4a43cdc41', // Created using the AWS console * });',
    }),
    commands: ['npm ci','npm run build','npx cdk synth'],
  }),

  // Turn this on because the pipeline uses Docker image assets
  dockerEnabledForSelfMutation: true,
});

pipeline.addWave('MyWave', {
  post: [
    new pipelines.CodeBuildStep('RunApproval', {
      commands: ['command-from-image'],
      buildEnvironment: {
        // The user of a Docker image asset in the pipeline requires turning on
        // 'dockerEnabledForSelfMutation'.
        buildImage: codebuild.LinuxBuildImage.fromAsset(this, 'Image', {
          directory: './docker-image',
        }),
      },
    }),
  ],
});

Properties

NameTypeDescription
post?Step[]Additional steps to run after all of the stages in the wave.
pre?Step[]Additional steps to run before any of the stages in the wave.

post?

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

Additional steps to run after all of the stages in the wave.


pre?

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

Additional steps to run before any of the stages in the wave.