Class: AWSCDK::QuickSight::CfnDashboard::LabelOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::LabelOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.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.
18073 18074 18075 18076 18077 18078 18079 18080 |
# File 'quick_sight/cfn_dashboard.rb', line 18073 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::CfnDashboard::FontConfigurationProperty.new(**font_configuration.transform_keys(&:to_sym)) : font_configuration Jsii::Type.check_type(@font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Gb250Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "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.
18086 18087 18088 |
# File 'quick_sight/cfn_dashboard.rb', line 18086 def custom_label @custom_label end |
#font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The font configuration of the label.
18091 18092 18093 |
# File 'quick_sight/cfn_dashboard.rb', line 18091 def font_configuration @font_configuration end |
#visibility ⇒ String? (readonly)
Determines whether or not the label is visible.
18096 18097 18098 |
# File 'quick_sight/cfn_dashboard.rb', line 18096 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
18098 18099 18100 18101 18102 18103 18104 |
# File 'quick_sight/cfn_dashboard.rb', line 18098 def self.jsii_properties { :custom_label => "customLabel", :font_configuration => "fontConfiguration", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
18106 18107 18108 18109 18110 18111 18112 18113 18114 |
# File 'quick_sight/cfn_dashboard.rb', line 18106 def to_jsii result = {} result.merge!({ "customLabel" => @custom_label, "fontConfiguration" => @font_configuration, "visibility" => @visibility, }) result.compact end |