Class AddStageOpts
Options to pass to addStage
.
Inheritance
System.Object
AddStageOpts
Implements
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Pipelines.dll
Syntax (csharp)
public class AddStageOpts : Object, IAddStageOpts
Syntax (vb)
Public Class AddStageOpts
Inherits Object
Implements IAddStageOpts
Remarks
ExampleMetadata: infused
Examples
CodePipeline pipeline;
var preprod = new MyApplicationStage(this, "PreProd");
var prod = new MyApplicationStage(this, "Prod");
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") }
});
Synopsis
Constructors
AddStageOpts() |
Properties
Post | Additional steps to run after all of the stacks in the stage. |
Pre | Additional steps to run before any of the stacks in the stage. |
StackSteps | Instructions for stack level steps. |
Constructors
AddStageOpts()
public AddStageOpts()
Properties
Post
Additional steps to run after all of the stacks in the stage.
public Step[] Post { get; set; }
Property Value
Step[]
Remarks
Default: - No additional steps
Pre
Additional steps to run before any of the stacks in the stage.
public Step[] Pre { get; set; }
Property Value
Step[]
Remarks
Default: - No additional steps
StackSteps
Instructions for stack level steps.
public IStackSteps[] StackSteps { get; set; }
Property Value
Remarks
Default: - No additional instructions