-
Notifications
You must be signed in to change notification settings - Fork 17
/
StagePlacement.go
33 lines (30 loc) · 1.08 KB
/
StagePlacement.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package awscodepipeline
// Allows you to control where to place a new Stage when it's added to the Pipeline.
//
// Note that you can provide only one of the below properties -
// specifying more than one will result in a validation error.
//
// Example:
// // Insert a new Stage at an arbitrary point
// var pipeline pipeline
// var anotherStage iStage
// var yetAnotherStage iStage
//
//
// someStage := pipeline.AddStage(&StageOptions{
// StageName: jsii.String("SomeStage"),
// Placement: &StagePlacement{
// // note: you can only specify one of the below properties
// RightBefore: anotherStage,
// JustAfter: yetAnotherStage,
// },
// })
//
// See: #justAfter.
//
type StagePlacement struct {
// Inserts the new Stage as a child of the given Stage (changing its current child Stage, if it had one).
JustAfter IStage `field:"optional" json:"justAfter" yaml:"justAfter"`
// Inserts the new Stage as a parent of the given Stage (changing its current parent Stage, if it had one).
RightBefore IStage `field:"optional" json:"rightBefore" yaml:"rightBefore"`
}