Class: AWSCDK::Pipelines::AddStageOpts
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipelines::AddStageOpts
- Defined in:
- pipelines/add_stage_opts.rb
Overview
Options to pass to addStage.
Instance Attribute Summary collapse
-
#post ⇒ Array<AWSCDK::Pipelines::Step>?
readonly
Additional steps to run after all of the stacks in the stage.
-
#pre ⇒ Array<AWSCDK::Pipelines::Step>?
readonly
Additional steps to run before any of the stacks in the stage.
-
#stack_steps ⇒ Array<AWSCDK::Pipelines::StackSteps>?
readonly
Instructions for stack level steps.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(post: nil, pre: nil, stack_steps: nil) ⇒ AddStageOpts
constructor
A new instance of AddStageOpts.
- #to_jsii ⇒ Object
Constructor Details
#initialize(post: nil, pre: nil, stack_steps: nil) ⇒ AddStageOpts
Returns a new instance of AddStageOpts.
10 11 12 13 14 15 16 17 |
# File 'pipelines/add_stage_opts.rb', line 10 def initialize(post: nil, pre: nil, stack_steps: nil) @post = post Jsii::Type.check_type(@post, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5TdGVwIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "post") unless @post.nil? @pre = pre Jsii::Type.check_type(@pre, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5TdGVwIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "pre") unless @pre.nil? @stack_steps = stack_steps.is_a?(Array) ? stack_steps.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Pipelines::StackSteps.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : stack_steps Jsii::Type.check_type(@stack_steps, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLnBpcGVsaW5lcy5TdGFja1N0ZXBzIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "stackSteps") unless @stack_steps.nil? end |
Instance Attribute Details
#post ⇒ Array<AWSCDK::Pipelines::Step>? (readonly)
Note:
Default: - No additional steps
Additional steps to run after all of the stacks in the stage.
23 24 25 |
# File 'pipelines/add_stage_opts.rb', line 23 def post @post end |
#pre ⇒ Array<AWSCDK::Pipelines::Step>? (readonly)
Note:
Default: - No additional steps
Additional steps to run before any of the stacks in the stage.
28 29 30 |
# File 'pipelines/add_stage_opts.rb', line 28 def pre @pre end |
#stack_steps ⇒ Array<AWSCDK::Pipelines::StackSteps>? (readonly)
Note:
Default: - No additional instructions
Instructions for stack level steps.
33 34 35 |
# File 'pipelines/add_stage_opts.rb', line 33 def stack_steps @stack_steps end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'pipelines/add_stage_opts.rb', line 35 def self.jsii_properties { :post => "post", :pre => "pre", :stack_steps => "stackSteps", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'pipelines/add_stage_opts.rb', line 43 def to_jsii result = {} result.merge!({ "post" => @post, "pre" => @pre, "stackSteps" => @stack_steps, }) result.compact end |