Class: AWSCDK::QuickSight::CfnAnalysis::AxisLabelOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::AxisLabelOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The label options for a chart axis.
You must specify the field that the label is targeted to.
Instance Attribute Summary collapse
-
#apply_to ⇒ AWSCDK::IResolvable, ...
readonly
The options that indicate which field the label belongs to.
-
#custom_label ⇒ String?
readonly
The text for the axis label.
-
#font_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The font configuration of the axis label.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(apply_to: nil, custom_label: nil, font_configuration: nil) ⇒ AxisLabelOptionsProperty
constructor
A new instance of AxisLabelOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(apply_to: nil, custom_label: nil, font_configuration: nil) ⇒ AxisLabelOptionsProperty
Returns a new instance of AxisLabelOptionsProperty.
1662 1663 1664 1665 1666 1667 1668 1669 |
# File 'quick_sight/cfn_analysis.rb', line 1662 def initialize(apply_to: nil, custom_label: nil, font_configuration: nil) @apply_to = apply_to.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::AxisLabelReferenceOptionsProperty.new(**apply_to.transform_keys(&:to_sym)) : apply_to Jsii::Type.check_type(@apply_to, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkF4aXNMYWJlbFJlZmVyZW5jZU9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "applyTo") unless @apply_to.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? end |
Instance Attribute Details
#apply_to ⇒ AWSCDK::IResolvable, ... (readonly)
The options that indicate which field the label belongs to.
1675 1676 1677 |
# File 'quick_sight/cfn_analysis.rb', line 1675 def apply_to @apply_to end |
#custom_label ⇒ String? (readonly)
The text for the axis label.
1680 1681 1682 |
# File 'quick_sight/cfn_analysis.rb', line 1680 def custom_label @custom_label end |
#font_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The font configuration of the axis label.
1685 1686 1687 |
# File 'quick_sight/cfn_analysis.rb', line 1685 def font_configuration @font_configuration end |
Class Method Details
.jsii_properties ⇒ Object
1687 1688 1689 1690 1691 1692 1693 |
# File 'quick_sight/cfn_analysis.rb', line 1687 def self.jsii_properties { :apply_to => "applyTo", :custom_label => "customLabel", :font_configuration => "fontConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1695 1696 1697 1698 1699 1700 1701 1702 1703 |
# File 'quick_sight/cfn_analysis.rb', line 1695 def to_jsii result = {} result.merge!({ "applyTo" => @apply_to, "customLabel" => @custom_label, "fontConfiguration" => @font_configuration, }) result.compact end |