Class: AWSCDK::QuickSight::CfnAnalysis::AxisLabelOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(apply_to: nil, custom_label: nil, font_configuration: nil) ⇒ AxisLabelOptionsProperty

Returns a new instance of AxisLabelOptionsProperty.

Parameters:



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_toAWSCDK::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_labelString? (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_configurationAWSCDK::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_propertiesObject



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_jsiiObject



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