Class: AWSCDK::ResolveChangeContextOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
resolve_change_context_options.rb

Overview

Options that can be changed while doing a recursive resolve.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allow_intrinsic_keys: nil, remove_empty: nil) ⇒ ResolveChangeContextOptions

Returns a new instance of ResolveChangeContextOptions.

Parameters:

  • allow_intrinsic_keys (Boolean, nil) (defaults to: nil)

    Change the 'allowIntrinsicKeys' option.

  • remove_empty (Boolean, nil) (defaults to: nil)

    Whether to remove undefined elements from arrays and objects when resolving.



9
10
11
12
13
14
# File 'resolve_change_context_options.rb', line 9

def initialize(allow_intrinsic_keys: nil, remove_empty: nil)
  @allow_intrinsic_keys = allow_intrinsic_keys
  Jsii::Type.check_type(@allow_intrinsic_keys, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "allowIntrinsicKeys") unless @allow_intrinsic_keys.nil?
  @remove_empty = remove_empty
  Jsii::Type.check_type(@remove_empty, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "removeEmpty") unless @remove_empty.nil?
end

Instance Attribute Details

#allow_intrinsic_keysBoolean? (readonly)

Note:

Default: - Unchanged

Change the 'allowIntrinsicKeys' option.

Returns:

  • (Boolean, nil)


20
21
22
# File 'resolve_change_context_options.rb', line 20

def allow_intrinsic_keys
  @allow_intrinsic_keys
end

#remove_emptyBoolean? (readonly)

Note:

Default: - Unchanged

Whether to remove undefined elements from arrays and objects when resolving.

Returns:

  • (Boolean, nil)


25
26
27
# File 'resolve_change_context_options.rb', line 25

def remove_empty
  @remove_empty
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'resolve_change_context_options.rb', line 27

def self.jsii_properties
  {
    :allow_intrinsic_keys => "allowIntrinsicKeys",
    :remove_empty => "removeEmpty",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'resolve_change_context_options.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "allowIntrinsicKeys" => @allow_intrinsic_keys,
    "removeEmpty" => @remove_empty,
  })
  result.compact
end