Class: AWSCDK::CfnMappingProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnMappingProps
- Defined in:
- cfn_mapping_props.rb
Instance Attribute Summary collapse
- #lazy ⇒ Boolean? readonly
-
#mapping ⇒ Hash{String => Hash{String => Object}}?
readonly
Mapping of key to a set of corresponding set of named values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lazy: nil, mapping: nil) ⇒ CfnMappingProps
constructor
A new instance of CfnMappingProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lazy: nil, mapping: nil) ⇒ CfnMappingProps
Returns a new instance of CfnMappingProps.
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
#lazy ⇒ Boolean? (readonly)
16 17 18 |
# File 'cfn_mapping_props.rb', line 16 def lazy @lazy end |
#mapping ⇒ Hash{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.
27 28 29 |
# File 'cfn_mapping_props.rb', line 27 def mapping @mapping end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |