Class: AWSCDK::QuickSight::CfnTemplate::LabelOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::LabelOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The share label options for the labels.
Instance Attribute Summary collapse
-
#custom_label ⇒ String?
readonly
The text for the label.
-
#font_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The font configuration of the label.
-
#visibility ⇒ String?
readonly
Determines whether or not the label is visible.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_label: nil, font_configuration: nil, visibility: nil) ⇒ LabelOptionsProperty
constructor
A new instance of LabelOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_label: nil, font_configuration: nil, visibility: nil) ⇒ LabelOptionsProperty
Returns a new instance of LabelOptionsProperty.
15541 15542 15543 15544 15545 15546 15547 15548 |
# File 'quick_sight/cfn_template.rb', line 15541 def initialize(custom_label: nil, font_configuration: nil, visibility: nil) @custom_label = custom_label Jsii::Type.check_type(@custom_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customLabel") unless @custom_label.nil? @font_configuration = font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FontConfigurationProperty.new(**font_configuration.transform_keys(&:to_sym)) : font_configuration Jsii::Type.check_type(@font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "fontConfiguration") unless @font_configuration.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? end |
Instance Attribute Details
#custom_label ⇒ String? (readonly)
The text for the label.
15554 15555 15556 |
# File 'quick_sight/cfn_template.rb', line 15554 def custom_label @custom_label end |
#font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The font configuration of the label.
15559 15560 15561 |
# File 'quick_sight/cfn_template.rb', line 15559 def font_configuration @font_configuration end |
#visibility ⇒ String? (readonly)
Determines whether or not the label is visible.
15564 15565 15566 |
# File 'quick_sight/cfn_template.rb', line 15564 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
15566 15567 15568 15569 15570 15571 15572 |
# File 'quick_sight/cfn_template.rb', line 15566 def self.jsii_properties { :custom_label => "customLabel", :font_configuration => "fontConfiguration", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
15574 15575 15576 15577 15578 15579 15580 15581 15582 |
# File 'quick_sight/cfn_template.rb', line 15574 def to_jsii result = {} result.merge!({ "customLabel" => @custom_label, "fontConfiguration" => @font_configuration, "visibility" => @visibility, }) result.compact end |