Class: AWSCDK::Codepipeline::StagePlacement
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::StagePlacement
- Defined in:
- codepipeline/stage_placement.rb
Overview
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.
Instance Attribute Summary collapse
-
#just_after ⇒ AWSCDK::Codepipeline::IStage?
readonly
Inserts the new Stage as a child of the given Stage (changing its current child Stage, if it had one).
-
#right_before ⇒ AWSCDK::Codepipeline::IStage?
readonly
Inserts the new Stage as a parent of the given Stage (changing its current parent Stage, if it had one).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(just_after: nil, right_before: nil) ⇒ StagePlacement
constructor
A new instance of StagePlacement.
- #to_jsii ⇒ Object
Constructor Details
#initialize(just_after: nil, right_before: nil) ⇒ StagePlacement
Returns a new instance of StagePlacement.
14 15 16 17 18 19 |
# File 'codepipeline/stage_placement.rb', line 14 def initialize(just_after: nil, right_before: nil) @just_after = just_after Jsii::Type.check_type(@just_after, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLklTdGFnZSJ9")), "justAfter") unless @just_after.nil? @right_before = right_before Jsii::Type.check_type(@right_before, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLklTdGFnZSJ9")), "rightBefore") unless @right_before.nil? end |
Instance Attribute Details
#just_after ⇒ AWSCDK::Codepipeline::IStage? (readonly)
Inserts the new Stage as a child of the given Stage (changing its current child Stage, if it had one).
24 25 26 |
# File 'codepipeline/stage_placement.rb', line 24 def just_after @just_after end |
#right_before ⇒ AWSCDK::Codepipeline::IStage? (readonly)
Inserts the new Stage as a parent of the given Stage (changing its current parent Stage, if it had one).
28 29 30 |
# File 'codepipeline/stage_placement.rb', line 28 def right_before @right_before end |
Class Method Details
.jsii_properties ⇒ Object
30 31 32 33 34 35 |
# File 'codepipeline/stage_placement.rb', line 30 def self.jsii_properties { :just_after => "justAfter", :right_before => "rightBefore", } end |
Instance Method Details
#to_jsii ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'codepipeline/stage_placement.rb', line 37 def to_jsii result = {} result.merge!({ "justAfter" => @just_after, "rightBefore" => @right_before, }) result.compact end |