Class: AWSCDK::QuickSight::CfnTheme::ThemeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTheme::ThemeConfigurationProperty
- Defined in:
- quick_sight/cfn_theme.rb
Overview
The theme configuration.
This configuration contains all of the display properties for a theme.
Instance Attribute Summary collapse
-
#data_color_palette ⇒ AWSCDK::IResolvable, ...
readonly
Color properties that apply to chart data colors.
-
#sheet ⇒ AWSCDK::IResolvable, ...
readonly
Display options related to sheets.
-
#typography ⇒ AWSCDK::IResolvable, ...
readonly
Determines the typography options.
-
#ui_color_palette ⇒ AWSCDK::IResolvable, ...
readonly
Color properties that apply to the UI and to charts, excluding the colors that apply to data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_color_palette: nil, sheet: nil, typography: nil, ui_color_palette: nil) ⇒ ThemeConfigurationProperty
constructor
A new instance of ThemeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_color_palette: nil, sheet: nil, typography: nil, ui_color_palette: nil) ⇒ ThemeConfigurationProperty
Returns a new instance of ThemeConfigurationProperty.
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'quick_sight/cfn_theme.rb', line 1005 def initialize(data_color_palette: nil, sheet: nil, typography: nil, ui_color_palette: nil) @data_color_palette = data_color_palette.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTheme::DataColorPaletteProperty.new(**data_color_palette.transform_keys(&:to_sym)) : data_color_palette Jsii::Type.check_type(@data_color_palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRoZW1lLkRhdGFDb2xvclBhbGV0dGVQcm9wZXJ0eSJ9XX19")), "dataColorPalette") unless @data_color_palette.nil? @sheet = sheet.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTheme::SheetStyleProperty.new(**sheet.transform_keys(&:to_sym)) : sheet Jsii::Type.check_type(@sheet, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRoZW1lLlNoZWV0U3R5bGVQcm9wZXJ0eSJ9XX19")), "sheet") unless @sheet.nil? @typography = typography.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTheme::TypographyProperty.new(**typography.transform_keys(&:to_sym)) : typography Jsii::Type.check_type(@typography, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRoZW1lLlR5cG9ncmFwaHlQcm9wZXJ0eSJ9XX19")), "typography") unless @typography.nil? @ui_color_palette = ui_color_palette.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTheme::UIColorPaletteProperty.new(**ui_color_palette.transform_keys(&:to_sym)) : ui_color_palette Jsii::Type.check_type(@ui_color_palette, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRoZW1lLlVJQ29sb3JQYWxldHRlUHJvcGVydHkifV19fQ==")), "uiColorPalette") unless @ui_color_palette.nil? end |
Instance Attribute Details
#data_color_palette ⇒ AWSCDK::IResolvable, ... (readonly)
Color properties that apply to chart data colors.
1020 1021 1022 |
# File 'quick_sight/cfn_theme.rb', line 1020 def data_color_palette @data_color_palette end |
#sheet ⇒ AWSCDK::IResolvable, ... (readonly)
Display options related to sheets.
1025 1026 1027 |
# File 'quick_sight/cfn_theme.rb', line 1025 def sheet @sheet end |
#typography ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the typography options.
1030 1031 1032 |
# File 'quick_sight/cfn_theme.rb', line 1030 def typography @typography end |
#ui_color_palette ⇒ AWSCDK::IResolvable, ... (readonly)
Color properties that apply to the UI and to charts, excluding the colors that apply to data.
1035 1036 1037 |
# File 'quick_sight/cfn_theme.rb', line 1035 def ui_color_palette @ui_color_palette end |
Class Method Details
.jsii_properties ⇒ Object
1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'quick_sight/cfn_theme.rb', line 1037 def self.jsii_properties { :data_color_palette => "dataColorPalette", :sheet => "sheet", :typography => "typography", :ui_color_palette => "uiColorPalette", } end |
Instance Method Details
#to_jsii ⇒ Object
1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'quick_sight/cfn_theme.rb', line 1046 def to_jsii result = {} result.merge!({ "dataColorPalette" => @data_color_palette, "sheet" => @sheet, "typography" => @typography, "uiColorPalette" => @ui_color_palette, }) result.compact end |