Class: AWSCDK::QuickSight::CfnDashboard::ReferenceLineLabelConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::ReferenceLineLabelConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The label configuration of a reference line.
Instance Attribute Summary collapse
-
#custom_label_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The custom label configuration of the label in a reference line.
-
#font_color ⇒ String?
readonly
The font color configuration of the label in a reference line.
-
#font_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The font configuration of the label in a reference line.
-
#horizontal_position ⇒ String?
readonly
The horizontal position configuration of the label in a reference line.
-
#value_label_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The value label configuration of the label in a reference line.
-
#vertical_position ⇒ String?
readonly
The vertical position configuration of the label in a reference line.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_label_configuration: nil, font_color: nil, font_configuration: nil, horizontal_position: nil, value_label_configuration: nil, vertical_position: nil) ⇒ ReferenceLineLabelConfigurationProperty
constructor
A new instance of ReferenceLineLabelConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_label_configuration: nil, font_color: nil, font_configuration: nil, horizontal_position: nil, value_label_configuration: nil, vertical_position: nil) ⇒ ReferenceLineLabelConfigurationProperty
Returns a new instance of ReferenceLineLabelConfigurationProperty.
24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 |
# File 'quick_sight/cfn_dashboard.rb', line 24973 def initialize(custom_label_configuration: nil, font_color: nil, font_configuration: nil, horizontal_position: nil, value_label_configuration: nil, vertical_position: nil) @custom_label_configuration = custom_label_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ReferenceLineCustomLabelConfigurationProperty.new(**custom_label_configuration.transform_keys(&:to_sym)) : custom_label_configuration Jsii::Type.check_type(@custom_label_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5SZWZlcmVuY2VMaW5lQ3VzdG9tTGFiZWxDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "customLabelConfiguration") unless @custom_label_configuration.nil? @font_color = font_color Jsii::Type.check_type(@font_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontColor") unless @font_color.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? @horizontal_position = horizontal_position Jsii::Type.check_type(@horizontal_position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "horizontalPosition") unless @horizontal_position.nil? @value_label_configuration = value_label_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ReferenceLineValueLabelConfigurationProperty.new(**value_label_configuration.transform_keys(&:to_sym)) : value_label_configuration Jsii::Type.check_type(@value_label_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5SZWZlcmVuY2VMaW5lVmFsdWVMYWJlbENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "valueLabelConfiguration") unless @value_label_configuration.nil? @vertical_position = vertical_position Jsii::Type.check_type(@vertical_position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "verticalPosition") unless @vertical_position.nil? end |
Instance Attribute Details
#custom_label_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The custom label configuration of the label in a reference line.
24992 24993 24994 |
# File 'quick_sight/cfn_dashboard.rb', line 24992 def custom_label_configuration @custom_label_configuration end |
#font_color ⇒ String? (readonly)
The font color configuration of the label in a reference line.
24997 24998 24999 |
# File 'quick_sight/cfn_dashboard.rb', line 24997 def font_color @font_color end |
#font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The font configuration of the label in a reference line.
25002 25003 25004 |
# File 'quick_sight/cfn_dashboard.rb', line 25002 def font_configuration @font_configuration end |
#horizontal_position ⇒ String? (readonly)
The horizontal position configuration of the label in a reference line. Choose one of the following options:.
LEFTCENTERRIGHT
25011 25012 25013 |
# File 'quick_sight/cfn_dashboard.rb', line 25011 def horizontal_position @horizontal_position end |
#value_label_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The value label configuration of the label in a reference line.
25016 25017 25018 |
# File 'quick_sight/cfn_dashboard.rb', line 25016 def value_label_configuration @value_label_configuration end |
#vertical_position ⇒ String? (readonly)
The vertical position configuration of the label in a reference line. Choose one of the following options:.
ABOVEBELOW
25024 25025 25026 |
# File 'quick_sight/cfn_dashboard.rb', line 25024 def vertical_position @vertical_position end |
Class Method Details
.jsii_properties ⇒ Object
25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 |
# File 'quick_sight/cfn_dashboard.rb', line 25026 def self.jsii_properties { :custom_label_configuration => "customLabelConfiguration", :font_color => "fontColor", :font_configuration => "fontConfiguration", :horizontal_position => "horizontalPosition", :value_label_configuration => "valueLabelConfiguration", :vertical_position => "verticalPosition", } end |
Instance Method Details
#to_jsii ⇒ Object
25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 |
# File 'quick_sight/cfn_dashboard.rb', line 25037 def to_jsii result = {} result.merge!({ "customLabelConfiguration" => @custom_label_configuration, "fontColor" => @font_color, "fontConfiguration" => @font_configuration, "horizontalPosition" => @horizontal_position, "valueLabelConfiguration" => @value_label_configuration, "verticalPosition" => @vertical_position, }) result.compact end |