Class: AWSCDK::QuickSight::CfnDashboard::AxisTickLabelOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

The tick label options of an axis.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label_options: nil, rotation_angle: nil) ⇒ AxisTickLabelOptionsProperty

Returns a new instance of AxisTickLabelOptionsProperty.

Parameters:



1746
1747
1748
1749
1750
1751
# File 'quick_sight/cfn_dashboard.rb', line 1746

def initialize(label_options: nil, rotation_angle: nil)
  @label_options = label_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::LabelOptionsProperty.new(**label_options.transform_keys(&:to_sym)) : label_options
  Jsii::Type.check_type(@label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5MYWJlbE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "labelOptions") unless @label_options.nil?
  @rotation_angle = rotation_angle
  Jsii::Type.check_type(@rotation_angle, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rotationAngle") unless @rotation_angle.nil?
end

Instance Attribute Details

#label_optionsAWSCDK::IResolvable, ... (readonly)

Determines whether or not the axis ticks are visible.



1757
1758
1759
# File 'quick_sight/cfn_dashboard.rb', line 1757

def label_options
  @label_options
end

#rotation_angleNumeric? (readonly)

The rotation angle of the axis tick labels.



1762
1763
1764
# File 'quick_sight/cfn_dashboard.rb', line 1762

def rotation_angle
  @rotation_angle
end

Class Method Details

.jsii_propertiesObject



1764
1765
1766
1767
1768
1769
# File 'quick_sight/cfn_dashboard.rb', line 1764

def self.jsii_properties
  {
    :label_options => "labelOptions",
    :rotation_angle => "rotationAngle",
  }
end

Instance Method Details

#to_jsiiObject



1771
1772
1773
1774
1775
1776
1777
1778
# File 'quick_sight/cfn_dashboard.rb', line 1771

def to_jsii
  result = {}
  result.merge!({
    "labelOptions" => @label_options,
    "rotationAngle" => @rotation_angle,
  })
  result.compact
end