Class: AWSCDK::QuickSight::CfnTemplate::NumericAxisOptionsProperty

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

Overview

The options for an axis with a numeric field.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(range: nil, scale: nil) ⇒ NumericAxisOptionsProperty

Returns a new instance of NumericAxisOptionsProperty.

Parameters:



17415
17416
17417
17418
17419
17420
# File 'quick_sight/cfn_template.rb', line 17415

def initialize(range: nil, scale: nil)
  @range = range.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::AxisDisplayRangeProperty.new(**range.transform_keys(&:to_sym)) : range
  Jsii::Type.check_type(@range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkF4aXNEaXNwbGF5UmFuZ2VQcm9wZXJ0eSJ9XX19")), "range") unless @range.nil?
  @scale = scale.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::AxisScaleProperty.new(**scale.transform_keys(&:to_sym)) : scale
  Jsii::Type.check_type(@scale, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkF4aXNTY2FsZVByb3BlcnR5In1dfX0=")), "scale") unless @scale.nil?
end

Instance Attribute Details

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

The range setup of a numeric axis.



17426
17427
17428
# File 'quick_sight/cfn_template.rb', line 17426

def range
  @range
end

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

The scale setup of a numeric axis.



17431
17432
17433
# File 'quick_sight/cfn_template.rb', line 17431

def scale
  @scale
end

Class Method Details

.jsii_propertiesObject



17433
17434
17435
17436
17437
17438
# File 'quick_sight/cfn_template.rb', line 17433

def self.jsii_properties
  {
    :range => "range",
    :scale => "scale",
  }
end

Instance Method Details

#to_jsiiObject



17440
17441
17442
17443
17444
17445
17446
17447
# File 'quick_sight/cfn_template.rb', line 17440

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