Module: AWSCDK::IMergeStrategy

Defined in:
i_merge_strategy.rb

Overview

Interface for applying properties to a target using a specific strategy.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



20
21
22
23
24
# File 'i_merge_strategy.rb', line 20

def self.jsii_overridable_methods
  {
    :apply => { kind: :method, name: "apply", is_optional: false },
  }
end

Instance Method Details

#apply(target, source, allowed_keys) ⇒ void

This method returns an undefined value.

Apply properties from source to target for the given keys.

Parameters:

  • target (Hash)
    • The construct to apply properties to.
  • source (Hash)
    • The property values to apply.
  • allowed_keys (Array<String>)
    • Only properties whose names are in this list will be read from source and written to target.


13
14
15
16
17
18
# File 'i_merge_strategy.rb', line 13

def apply(target, source, allowed_keys)
  Jsii::Type.check_type(target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJqc29uIn0=")), "target")
  Jsii::Type.check_type(source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJqc29uIn0=")), "source")
  Jsii::Type.check_type(allowed_keys, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedKeys")
  jsii_call_method("apply", [target, source, allowed_keys])
end