Class: AWSCDK::QuickSight::CfnAnalysis::AxisScaleProperty

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

Overview

The scale setup options for a numeric axis display.

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(linear: nil, logarithmic: nil) ⇒ AxisScaleProperty

Returns a new instance of AxisScaleProperty.

Parameters:



1837
1838
1839
1840
1841
1842
# File 'quick_sight/cfn_analysis.rb', line 1837

def initialize(linear: nil, logarithmic: nil)
  @linear = linear.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::AxisLinearScaleProperty.new(**linear.transform_keys(&:to_sym)) : linear
  Jsii::Type.check_type(@linear, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkF4aXNMaW5lYXJTY2FsZVByb3BlcnR5In1dfX0=")), "linear") unless @linear.nil?
  @logarithmic = logarithmic.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::AxisLogarithmicScaleProperty.new(**logarithmic.transform_keys(&:to_sym)) : logarithmic
  Jsii::Type.check_type(@logarithmic, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkF4aXNMb2dhcml0aG1pY1NjYWxlUHJvcGVydHkifV19fQ==")), "logarithmic") unless @logarithmic.nil?
end

Instance Attribute Details

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

The linear axis scale setup.



1848
1849
1850
# File 'quick_sight/cfn_analysis.rb', line 1848

def linear
  @linear
end

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

The logarithmic axis scale setup.



1853
1854
1855
# File 'quick_sight/cfn_analysis.rb', line 1853

def logarithmic
  @logarithmic
end

Class Method Details

.jsii_propertiesObject



1855
1856
1857
1858
1859
1860
# File 'quick_sight/cfn_analysis.rb', line 1855

def self.jsii_properties
  {
    :linear => "linear",
    :logarithmic => "logarithmic",
  }
end

Instance Method Details

#to_jsiiObject



1862
1863
1864
1865
1866
1867
1868
1869
# File 'quick_sight/cfn_analysis.rb', line 1862

def to_jsii
  result = {}
  result.merge!({
    "linear" => @linear,
    "logarithmic" => @logarithmic,
  })
  result.compact
end