Class: AWSCDK::Pipelines::WaveOptions

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

Overview

Options to pass to addWave.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(post: nil, pre: nil) ⇒ WaveOptions

Returns a new instance of WaveOptions.

Parameters:

  • post (Array<AWSCDK::Pipelines::Step>, nil) (defaults to: nil)

    Additional steps to run after all of the stages in the wave.

  • pre (Array<AWSCDK::Pipelines::Step>, nil) (defaults to: nil)

    Additional steps to run before any of the stages in the wave.



9
10
11
12
13
14
# File 'pipelines/wave_options.rb', line 9

def initialize(post: nil, pre: 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?
end

Instance Attribute Details

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

Note:

Default: - No additional steps

Additional steps to run after all of the stages in the wave.

Returns:



20
21
22
# File 'pipelines/wave_options.rb', line 20

def post
  @post
end

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

Note:

Default: - No additional steps

Additional steps to run before any of the stages in the wave.

Returns:



25
26
27
# File 'pipelines/wave_options.rb', line 25

def pre
  @pre
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'pipelines/wave_options.rb', line 27

def self.jsii_properties
  {
    :post => "post",
    :pre => "pre",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'pipelines/wave_options.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "post" => @post,
    "pre" => @pre,
  })
  result.compact
end