aws-cdk-lib.pipelines.ManualApprovalStep

class ManualApprovalStep

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

Implements IFileSetProducer

Extends Step

A manual approval step.

If this step is added to a Pipeline, the Pipeline will be paused waiting for a human to resume it

Only engines that support pausing the deployment will support this step type.

Example

declare const pipeline: pipelines.CodePipeline;
const preprod = new MyApplicationStage(this, 'PreProd');
const prod = new MyApplicationStage(this, 'Prod');

pipeline.addStage(preprod, {
  post: [
    new pipelines.ShellStep('Validate Endpoint', {
      commands: ['curl -Ssf https://my.webservice.com/'],
    }),
  ],
});
pipeline.addStage(prod, {
  pre: [
    new pipelines.ManualApprovalStep('PromoteToProd'),
  ],
});

Initializer

new ManualApprovalStep(id: string, props?: ManualApprovalStepProps)

Parameters

  • id string — Identifier for this step.
  • props ManualApprovalStepProps

Properties

NameTypeDescription
consumedStackOutputsStackOutputReference[]StackOutputReferences this step consumes.
dependenciesStep[]Return the steps this step depends on, based on the FileSets it requires.
dependencyFileSetsFileSet[]The list of FileSets consumed by this Step.
idstringIdentifier for this step.
isSourcebooleanWhether or not this is a Source step.
comment?stringThe comment associated with this manual approval.
primaryOutput?FileSetThe primary FileSet produced by this Step.

consumedStackOutputs

Type: StackOutputReference[]

StackOutputReferences this step consumes.


dependencies

Type: Step[]

Return the steps this step depends on, based on the FileSets it requires.


dependencyFileSets

Type: FileSet[]

The list of FileSets consumed by this Step.


id

Type: string

Identifier for this step.


isSource

Type: boolean

Whether or not this is a Source step.

What it means to be a Source step depends on the engine.


comment?

Type: string (optional, default: No comment)

The comment associated with this manual approval.


primaryOutput?

Type: FileSet (optional)

The primary FileSet produced by this Step.

Not all steps produce an output FileSet--if they do you can substitute the Step object for the FileSet object.

Methods

NameDescription
addStepDependency(step)Add a dependency on another step.
toString()Return a string representation of this Step.

addStepDependency(step)

public addStepDependency(step: Step): void

Parameters

  • step Step

Add a dependency on another step.


toString()

public toString(): string

Returns

  • string

Return a string representation of this Step.