Class: AWSCDK::QuickSight::CfnAnalysis::LabelOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::LabelOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.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.
17134 17135 17136 17137 17138 17139 17140 17141 |
# File 'quick_sight/cfn_analysis.rb', line 17134 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::CfnAnalysis::FontConfigurationProperty.new(**font_configuration.transform_keys(&:to_sym)) : font_configuration Jsii::Type.check_type(@font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "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.
17147 17148 17149 |
# File 'quick_sight/cfn_analysis.rb', line 17147 def custom_label @custom_label end |
#font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The font configuration of the label.
17152 17153 17154 |
# File 'quick_sight/cfn_analysis.rb', line 17152 def font_configuration @font_configuration end |
#visibility ⇒ String? (readonly)
Determines whether or not the label is visible.
17157 17158 17159 |
# File 'quick_sight/cfn_analysis.rb', line 17157 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
17159 17160 17161 17162 17163 17164 17165 |
# File 'quick_sight/cfn_analysis.rb', line 17159 def self.jsii_properties { :custom_label => "customLabel", :font_configuration => "fontConfiguration", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
17167 17168 17169 17170 17171 17172 17173 17174 17175 |
# File 'quick_sight/cfn_analysis.rb', line 17167 def to_jsii result = {} result.merge!({ "customLabel" => @custom_label, "fontConfiguration" => @font_configuration, "visibility" => @visibility, }) result.compact end |