Class StagePlacement
Allows you to control where to place a new Stage when it's added to the Pipeline.
Inheritance
System.Object
StagePlacement
Implements
Namespace: Amazon.CDK.AWS.CodePipeline
Assembly: Amazon.CDK.AWS.CodePipeline.dll
Syntax (csharp)
public class StagePlacement : Object, IStagePlacement
Syntax (vb)
Public Class StagePlacement
Inherits Object
Implements IStagePlacement
Remarks
Note that you can provide only one of the below properties - specifying more than one will result in a validation error.
See: #justAfter
ExampleMetadata: infused
Examples
// Insert a new Stage at an arbitrary point
Pipeline pipeline;
IStage anotherStage;
IStage yetAnotherStage;
var someStage = pipeline.AddStage(new StageOptions {
StageName = "SomeStage",
Placement = new StagePlacement {
// note: you can only specify one of the below properties
RightBefore = anotherStage,
JustAfter = yetAnotherStage
}
});
Synopsis
Constructors
StagePlacement() |
Properties
JustAfter | Inserts the new Stage as a child of the given Stage (changing its current child Stage, if it had one). |
RightBefore | Inserts the new Stage as a parent of the given Stage (changing its current parent Stage, if it had one). |
Constructors
StagePlacement()
public StagePlacement()
Properties
JustAfter
Inserts the new Stage as a child of the given Stage (changing its current child Stage, if it had one).
public IStage JustAfter { get; set; }
Property Value
RightBefore
Inserts the new Stage as a parent of the given Stage (changing its current parent Stage, if it had one).
public IStage RightBefore { get; set; }
Property Value