Show / Hide Table of Contents

Class ManualApprovalStep

A manual approval step.

Inheritance
object
Step
ManualApprovalStep
Implements
IFileSetProducer
Inherited Members
Step.Sequence(Step[])
Step.AddDependencyFileSet(FileSet)
Step.AddStepDependency(Step)
Step.ConfigurePrimaryOutput(FileSet)
Step.DiscoverReferencedOutputs(object)
Step.ToString()
Step.ConsumedStackOutputs
Step.Dependencies
Step.DependencyFileSets
Step.Id
Step.IsSource
Step.PrimaryOutput
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ManualApprovalStep : Step, IFileSetProducer
Syntax (vb)
Public Class ManualApprovalStep Inherits Step Implements IFileSetProducer
Remarks

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.

ExampleMetadata: infused

Examples
CodePipeline pipeline;

             var preprod = new MyApplicationStage(this, "PreProd");
             var prod = new MyApplicationStage(this, "Prod");
             var topic = new Topic(this, "ChangeApprovalTopic");

             pipeline.AddStage(preprod, new AddStageOpts {
                 Post = new [] {
                     new ShellStep("Validate Endpoint", new ShellStepProps {
                         Commands = new [] { "curl -Ssf https://my.webservice.com/" }
                     }) }
             });
             pipeline.AddStage(prod, new AddStageOpts {
                 Pre = new [] { new ManualApprovalStep("PromoteToProd", new ManualApprovalStepProps {
                     //All options below are optional
                     Comment = "Please validate changes",
                     ReviewUrl = "https://my.webservice.com/",
                     NotificationTopic = topic
                 }) }
             });

Synopsis

Constructors

ManualApprovalStep(string, IManualApprovalStepProps?)

A manual approval step.

Properties

Comment

The comment associated with this manual approval.

NotificationTopic

Optional SNS topic to send notifications.

ReviewUrl

The URL for review associated with this manual approval.

Constructors

ManualApprovalStep(string, IManualApprovalStepProps?)

A manual approval step.

public ManualApprovalStep(string id, IManualApprovalStepProps? props = null)
Parameters
id string

Identifier for this step.

props IManualApprovalStepProps

Identifier for this step.

Remarks

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.

ExampleMetadata: infused

Properties

Comment

The comment associated with this manual approval.

public virtual string? Comment { get; }
Property Value

string

Remarks

Default: - No comment

NotificationTopic

Optional SNS topic to send notifications.

public virtual ITopic? NotificationTopic { get; }
Property Value

ITopic

Remarks

Default: - No notifications

ReviewUrl

The URL for review associated with this manual approval.

public virtual string? ReviewUrl { get; }
Property Value

string

Remarks

Default: - No URL

Implements

IFileSetProducer
Back to top Generated by DocFX