Class: AWSCDK::Pipelines::AddStageOpts

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipelines/add_stage_opts.rb

Overview

Options to pass to addStage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(post: nil, pre: nil, stack_steps: nil) ⇒ AddStageOpts

Returns a new instance of AddStageOpts.

Parameters:



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

#postArray<AWSCDK::Pipelines::Step>? (readonly)

Note:

Default: - No additional steps

Additional steps to run after all of the stacks in the stage.

Returns:



23
24
25
# File 'pipelines/add_stage_opts.rb', line 23

def post
  @post
end

#preArray<AWSCDK::Pipelines::Step>? (readonly)

Note:

Default: - No additional steps

Additional steps to run before any of the stacks in the stage.

Returns:



28
29
30
# File 'pipelines/add_stage_opts.rb', line 28

def pre
  @pre
end

#stack_stepsArray<AWSCDK::Pipelines::StackSteps>? (readonly)

Note:

Default: - No additional instructions

Instructions for stack level steps.

Returns:



33
34
35
# File 'pipelines/add_stage_opts.rb', line 33

def stack_steps
  @stack_steps
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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