Interface IAddStageOpts
Options to pass to addStage
.
Namespace: Amazon.CDK.Pipelines
Assembly: Amazon.CDK.Pipelines.dll
Syntax (csharp)
public interface IAddStageOpts
Syntax (vb)
Public Interface 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
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. |
Properties
Post
Additional steps to run after all of the stacks in the stage.
virtual Step[] Post { get; }
Property Value
Step[]
Remarks
Default: - No additional steps
Pre
Additional steps to run before any of the stacks in the stage.
virtual Step[] Pre { get; }
Property Value
Step[]
Remarks
Default: - No additional steps
StackSteps
Instructions for stack level steps.
virtual IStackSteps[] StackSteps { get; }
Property Value
Remarks
Default: - No additional instructions