class ManualApprovalStep
Language | Type name |
---|---|
.NET | Amazon.CDK.Pipelines.ManualApprovalStep |
Go | github.com/aws/aws-cdk-go/awscdk/v2/pipelines#ManualApprovalStep |
Java | software.amazon.awscdk.pipelines.ManualApprovalStep |
Python | aws_cdk.pipelines.ManualApprovalStep |
TypeScript (source) | aws-cdk-lib » pipelines » ManualApprovalStep |
Implements
IFile
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
Manual
Approval Step Props
Properties
Name | Type | Description |
---|---|---|
consumed | Stack [] | StackOutputReferences this step consumes. |
dependencies | Step [] | Return the steps this step depends on, based on the FileSets it requires. |
dependency | File [] | The list of FileSets consumed by this Step. |
id | string | Identifier for this step. |
is | boolean | Whether or not this is a Source step. |
comment? | string | The comment associated with this manual approval. |
primary | File | The primary FileSet produced by this Step. |
consumedStackOutputs
Type:
Stack
[]
StackOutputReferences this step consumes.
dependencies
Type:
Step
[]
Return the steps this step depends on, based on the FileSets it requires.
dependencyFileSets
Type:
File
[]
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:
File
(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
Name | Description |
---|---|
add | Add a dependency on another step. |
to | Return a string representation of this Step. |
StepDependency(step)
addpublic addStepDependency(step: Step): void
Parameters
- step
Step
Add a dependency on another step.
String()
topublic toString(): string
Returns
string
Return a string representation of this Step.