Class: AWSCDK::QuickSight::CfnAnalysis::DefaultSliderControlOptionsProperty

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

Overview

The default options that correspond to the Slider filter control type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum_value:, minimum_value:, step_size:, display_options: nil, type: nil) ⇒ DefaultSliderControlOptionsProperty

Returns a new instance of DefaultSliderControlOptionsProperty.

Parameters:

  • maximum_value (Numeric)

    The larger value that is displayed at the right of the slider.

  • minimum_value (Numeric)

    The smaller value that is displayed at the left of the slider.

  • step_size (Numeric)

    The number of increments that the slider bar is divided into.

  • display_options (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::SliderControlDisplayOptionsProperty, nil) (defaults to: nil)

    The display options of a control.

  • type (String, nil) (defaults to: nil)

    The type of the DefaultSliderControlOptions . Choose one of the following options:.



8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
# File 'quick_sight/cfn_analysis.rb', line 8260

def initialize(maximum_value:, minimum_value:, step_size:, display_options: nil, type: nil)
  @maximum_value = maximum_value
  Jsii::Type.check_type(@maximum_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumValue")
  @minimum_value = minimum_value
  Jsii::Type.check_type(@minimum_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minimumValue")
  @step_size = step_size
  Jsii::Type.check_type(@step_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "stepSize")
  @display_options = display_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SliderControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNsaWRlckNvbnRyb2xEaXNwbGF5T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "displayOptions") unless @display_options.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

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

The display options of a control.



8295
8296
8297
# File 'quick_sight/cfn_analysis.rb', line 8295

def display_options
  @display_options
end

#maximum_valueNumeric (readonly)

Note:

Default: - 0

The larger value that is displayed at the right of the slider.



8278
8279
8280
# File 'quick_sight/cfn_analysis.rb', line 8278

def maximum_value
  @maximum_value
end

#minimum_valueNumeric (readonly)

Note:

Default: - 0

The smaller value that is displayed at the left of the slider.



8284
8285
8286
# File 'quick_sight/cfn_analysis.rb', line 8284

def minimum_value
  @minimum_value
end

#step_sizeNumeric (readonly)

Note:

Default: - 0

The number of increments that the slider bar is divided into.



8290
8291
8292
# File 'quick_sight/cfn_analysis.rb', line 8290

def step_size
  @step_size
end

#typeString? (readonly)

The type of the DefaultSliderControlOptions . Choose one of the following options:.

  • SINGLE_POINT : Filter against(equals) a single data point.
  • RANGE : Filter data that is in a specified range.


8303
8304
8305
# File 'quick_sight/cfn_analysis.rb', line 8303

def type
  @type
end

Class Method Details

.jsii_propertiesObject



8305
8306
8307
8308
8309
8310
8311
8312
8313
# File 'quick_sight/cfn_analysis.rb', line 8305

def self.jsii_properties
  {
    :maximum_value => "maximumValue",
    :minimum_value => "minimumValue",
    :step_size => "stepSize",
    :display_options => "displayOptions",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
# File 'quick_sight/cfn_analysis.rb', line 8315

def to_jsii
  result = {}
  result.merge!({
    "maximumValue" => @maximum_value,
    "minimumValue" => @minimum_value,
    "stepSize" => @step_size,
    "displayOptions" => @display_options,
    "type" => @type,
  })
  result.compact
end