Class: AWSCDK::QuickSight::CfnTemplate::DataLabelOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::DataLabelOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The options that determine the presentation of the data labels.
Instance Attribute Summary collapse
-
#category_label_visibility ⇒ String?
readonly
Determines the visibility of the category field labels.
-
#data_label_types ⇒ AWSCDK::IResolvable, ...
readonly
The option that determines the data label type.
-
#label_color ⇒ String?
readonly
Determines the color of the data labels.
-
#label_content ⇒ String?
readonly
Determines the content of the data labels.
-
#label_font_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Determines the font configuration of the data labels.
-
#measure_label_visibility ⇒ String?
readonly
Determines the visibility of the measure field labels.
-
#overlap ⇒ String?
readonly
Determines whether overlap is enabled or disabled for the data labels.
-
#position ⇒ String?
readonly
Determines the position of the data labels.
-
#totals_visibility ⇒ String?
readonly
Determines the visibility of the total.
-
#visibility ⇒ String?
readonly
Determines the visibility of the data labels.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(category_label_visibility: nil, data_label_types: nil, label_color: nil, label_content: nil, label_font_configuration: nil, measure_label_visibility: nil, overlap: nil, position: nil, totals_visibility: nil, visibility: nil) ⇒ DataLabelOptionsProperty
constructor
A new instance of DataLabelOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(category_label_visibility: nil, data_label_types: nil, label_color: nil, label_content: nil, label_font_configuration: nil, measure_label_visibility: nil, overlap: nil, position: nil, totals_visibility: nil, visibility: nil) ⇒ DataLabelOptionsProperty
Returns a new instance of DataLabelOptionsProperty.
6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 |
# File 'quick_sight/cfn_template.rb', line 6198 def initialize(category_label_visibility: nil, data_label_types: nil, label_color: nil, label_content: nil, label_font_configuration: nil, measure_label_visibility: nil, overlap: nil, position: nil, totals_visibility: nil, visibility: nil) @category_label_visibility = category_label_visibility Jsii::Type.check_type(@category_label_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "categoryLabelVisibility") unless @category_label_visibility.nil? @data_label_types = data_label_types Jsii::Type.check_type(@data_label_types, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5EYXRhTGFiZWxUeXBlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "dataLabelTypes") unless @data_label_types.nil? @label_color = label_color Jsii::Type.check_type(@label_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "labelColor") unless @label_color.nil? @label_content = label_content Jsii::Type.check_type(@label_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "labelContent") unless @label_content.nil? @label_font_configuration = label_font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FontConfigurationProperty.new(**label_font_configuration.transform_keys(&:to_sym)) : label_font_configuration Jsii::Type.check_type(@label_font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "labelFontConfiguration") unless @label_font_configuration.nil? @measure_label_visibility = measure_label_visibility Jsii::Type.check_type(@measure_label_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "measureLabelVisibility") unless @measure_label_visibility.nil? @overlap = overlap Jsii::Type.check_type(@overlap, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "overlap") unless @overlap.nil? @position = position Jsii::Type.check_type(@position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "position") unless @position.nil? @totals_visibility = totals_visibility Jsii::Type.check_type(@totals_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "totalsVisibility") unless @totals_visibility.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? end |
Instance Attribute Details
#category_label_visibility ⇒ String? (readonly)
Determines the visibility of the category field labels.
6225 6226 6227 |
# File 'quick_sight/cfn_template.rb', line 6225 def category_label_visibility @category_label_visibility end |
#data_label_types ⇒ AWSCDK::IResolvable, ... (readonly)
The option that determines the data label type.
6230 6231 6232 |
# File 'quick_sight/cfn_template.rb', line 6230 def data_label_types @data_label_types end |
#label_color ⇒ String? (readonly)
Determines the color of the data labels.
6235 6236 6237 |
# File 'quick_sight/cfn_template.rb', line 6235 def label_color @label_color end |
#label_content ⇒ String? (readonly)
Determines the content of the data labels.
6240 6241 6242 |
# File 'quick_sight/cfn_template.rb', line 6240 def label_content @label_content end |
#label_font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Determines the font configuration of the data labels.
6245 6246 6247 |
# File 'quick_sight/cfn_template.rb', line 6245 def label_font_configuration @label_font_configuration end |
#measure_label_visibility ⇒ String? (readonly)
Determines the visibility of the measure field labels.
6250 6251 6252 |
# File 'quick_sight/cfn_template.rb', line 6250 def measure_label_visibility @measure_label_visibility end |
#overlap ⇒ String? (readonly)
Determines whether overlap is enabled or disabled for the data labels.
6255 6256 6257 |
# File 'quick_sight/cfn_template.rb', line 6255 def overlap @overlap end |
#position ⇒ String? (readonly)
Determines the position of the data labels.
6260 6261 6262 |
# File 'quick_sight/cfn_template.rb', line 6260 def position @position end |
#totals_visibility ⇒ String? (readonly)
Determines the visibility of the total.
6265 6266 6267 |
# File 'quick_sight/cfn_template.rb', line 6265 def totals_visibility @totals_visibility end |
#visibility ⇒ String? (readonly)
Determines the visibility of the data labels.
6270 6271 6272 |
# File 'quick_sight/cfn_template.rb', line 6270 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 |
# File 'quick_sight/cfn_template.rb', line 6272 def self.jsii_properties { :category_label_visibility => "categoryLabelVisibility", :data_label_types => "dataLabelTypes", :label_color => "labelColor", :label_content => "labelContent", :label_font_configuration => "labelFontConfiguration", :measure_label_visibility => "measureLabelVisibility", :overlap => "overlap", :position => "position", :totals_visibility => "totalsVisibility", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 |
# File 'quick_sight/cfn_template.rb', line 6287 def to_jsii result = {} result.merge!({ "categoryLabelVisibility" => @category_label_visibility, "dataLabelTypes" => @data_label_types, "labelColor" => @label_color, "labelContent" => @label_content, "labelFontConfiguration" => @label_font_configuration, "measureLabelVisibility" => @measure_label_visibility, "overlap" => @overlap, "position" => @position, "totalsVisibility" => @totals_visibility, "visibility" => @visibility, }) result.compact end |