Class: AWSCDK::AmplifyUIBuilder::CfnTheme::ThemeValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amplify_ui_builder/cfn_theme.rb

Overview

The ThemeValue property specifies the configuration of a theme's properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(children: nil, value: nil) ⇒ ThemeValueProperty

Returns a new instance of ThemeValueProperty.

Parameters:



593
594
595
596
597
598
# File 'amplify_ui_builder/cfn_theme.rb', line 593

def initialize(children: nil, value: nil)
  @children = children
  Jsii::Type.check_type(@children, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYW1wbGlmeXVpYnVpbGRlci5DZm5UaGVtZS5UaGVtZVZhbHVlc1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "children") unless @children.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#childrenAWSCDK::IResolvable, ... (readonly)

A list of key-value pairs that define the theme's properties.



604
605
606
# File 'amplify_ui_builder/cfn_theme.rb', line 604

def children
  @children
end

#valueString? (readonly)

The value of a theme property.



609
610
611
# File 'amplify_ui_builder/cfn_theme.rb', line 609

def value
  @value
end

Class Method Details

.jsii_propertiesObject



611
612
613
614
615
616
# File 'amplify_ui_builder/cfn_theme.rb', line 611

def self.jsii_properties
  {
    :children => "children",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



618
619
620
621
622
623
624
625
# File 'amplify_ui_builder/cfn_theme.rb', line 618

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