Class: AWSCDK::CfnMappingProps

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lazy: nil, mapping: nil) ⇒ CfnMappingProps

Returns a new instance of CfnMappingProps.

Parameters:

  • lazy (Boolean, nil) (defaults to: nil)
  • mapping (Hash{String => Hash{String => Object}}, nil) (defaults to: nil)

    Mapping of key to a set of corresponding set of named values.



8
9
10
11
12
13
# File 'cfn_mapping_props.rb', line 8

def initialize(lazy: nil, mapping: nil)
  @lazy = lazy
  Jsii::Type.check_type(@lazy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "lazy") unless @lazy.nil?
  @mapping = mapping
  Jsii::Type.check_type(@mapping, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoiYW55In0sImtpbmQiOiJtYXAifX0sImtpbmQiOiJtYXAifX0=")), "mapping") unless @mapping.nil?
end

Instance Attribute Details

#lazyBoolean? (readonly)

Returns:

  • (Boolean, nil)


16
17
18
# File 'cfn_mapping_props.rb', line 16

def lazy
  @lazy
end

#mappingHash{String => Hash{String => Object}}? (readonly)

Note:

Default: - No mapping.

Mapping of key to a set of corresponding set of named values.

The key identifies a map of name-value pairs and must be unique within the mapping.

For example, if you want to set values based on a region, you can create a mapping that uses the region name as a key and contains the values you want to specify for each specific region.

Returns:

  • (Hash{String => Hash{String => Object}}, nil)


27
28
29
# File 'cfn_mapping_props.rb', line 27

def mapping
  @mapping
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'cfn_mapping_props.rb', line 29

def self.jsii_properties
  {
    :lazy => "lazy",
    :mapping => "mapping",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'cfn_mapping_props.rb', line 36

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