Class: AWSCDK::QuickSight::CfnTemplate::AxisTickLabelOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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:



1602
1603
1604
1605
1606
1607
# File 'quick_sight/cfn_template.rb', line 1602

def initialize(label_options: nil, rotation_angle: nil)
  @label_options = label_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::LabelOptionsProperty.new(**label_options.transform_keys(&:to_sym)) : label_options
  Jsii::Type.check_type(@label_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkxhYmVsT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "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.



1613
1614
1615
# File 'quick_sight/cfn_template.rb', line 1613

def label_options
  @label_options
end

#rotation_angleNumeric? (readonly)

The rotation angle of the axis tick labels.



1618
1619
1620
# File 'quick_sight/cfn_template.rb', line 1618

def rotation_angle
  @rotation_angle
end

Class Method Details

.jsii_propertiesObject



1620
1621
1622
1623
1624
1625
# File 'quick_sight/cfn_template.rb', line 1620

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

Instance Method Details

#to_jsiiObject



1627
1628
1629
1630
1631
1632
1633
1634
# File 'quick_sight/cfn_template.rb', line 1627

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