Class: AWSCDK::AmplifyUIBuilder::CfnTheme::ThemeValuesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnTheme::ThemeValuesProperty
- Defined in:
- amplify_ui_builder/cfn_theme.rb
Overview
The ThemeValues property specifies key-value pair that defines a property of a theme.
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
The name of the property.
-
#value ⇒ AWSCDK::IResolvable, ...
readonly
The value of the property.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, value: nil) ⇒ ThemeValuesProperty
constructor
A new instance of ThemeValuesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, value: nil) ⇒ ThemeValuesProperty
Returns a new instance of ThemeValuesProperty.
636 637 638 639 640 641 |
# File 'amplify_ui_builder/cfn_theme.rb', line 636 def initialize(key: nil, value: nil) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? @value = value.is_a?(Hash) ? ::AWSCDK::AmplifyUIBuilder::CfnTheme::ThemeValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hbXBsaWZ5dWlidWlsZGVyLkNmblRoZW1lLlRoZW1lVmFsdWVQcm9wZXJ0eSJ9XX19")), "value") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String? (readonly)
The name of the property.
647 648 649 |
# File 'amplify_ui_builder/cfn_theme.rb', line 647 def key @key end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value of the property.
652 653 654 |
# File 'amplify_ui_builder/cfn_theme.rb', line 652 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
654 655 656 657 658 659 |
# File 'amplify_ui_builder/cfn_theme.rb', line 654 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
661 662 663 664 665 666 667 668 |
# File 'amplify_ui_builder/cfn_theme.rb', line 661 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |