Class: AWSCDK::QuickSight::CfnDashboard::ParameterSliderControlProperty

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

Overview

A control to display a horizontal toggle bar.

This is used to change a value by sliding the toggle.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum_value:, minimum_value:, parameter_control_id:, source_parameter_name:, step_size:, title:, display_options: nil) ⇒ ParameterSliderControlProperty

Returns a new instance of ParameterSliderControlProperty.

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.

  • parameter_control_id (String)

    The ID of the ParameterSliderControl .

  • source_parameter_name (String)

    The source parameter name of the ParameterSliderControl .

  • step_size (Numeric)

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

  • title (String)

    The title of the ParameterSliderControl .

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

    The display options of a control.



21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
# File 'quick_sight/cfn_dashboard.rb', line 21529

def initialize(maximum_value:, minimum_value:, parameter_control_id:, source_parameter_name:, step_size:, title:, display_options: 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")
  @parameter_control_id = parameter_control_id
  Jsii::Type.check_type(@parameter_control_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterControlId")
  @source_parameter_name = source_parameter_name
  Jsii::Type.check_type(@source_parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceParameterName")
  @step_size = step_size
  Jsii::Type.check_type(@step_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "stepSize")
  @title = title
  Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "title")
  @display_options = display_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::SliderControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TbGlkZXJDb250cm9sRGlzcGxheU9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "displayOptions") unless @display_options.nil?
end

Instance Attribute Details

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

The display options of a control.



21583
21584
21585
# File 'quick_sight/cfn_dashboard.rb', line 21583

def display_options
  @display_options
end

#maximum_valueNumeric (readonly)

Note:

Default: - 0

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



21551
21552
21553
# File 'quick_sight/cfn_dashboard.rb', line 21551

def maximum_value
  @maximum_value
end

#minimum_valueNumeric (readonly)

Note:

Default: - 0

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



21557
21558
21559
# File 'quick_sight/cfn_dashboard.rb', line 21557

def minimum_value
  @minimum_value
end

#parameter_control_idString (readonly)

The ID of the ParameterSliderControl .



21562
21563
21564
# File 'quick_sight/cfn_dashboard.rb', line 21562

def parameter_control_id
  @parameter_control_id
end

#source_parameter_nameString (readonly)

The source parameter name of the ParameterSliderControl .



21567
21568
21569
# File 'quick_sight/cfn_dashboard.rb', line 21567

def source_parameter_name
  @source_parameter_name
end

#step_sizeNumeric (readonly)

Note:

Default: - 0

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



21573
21574
21575
# File 'quick_sight/cfn_dashboard.rb', line 21573

def step_size
  @step_size
end

#titleString (readonly)

The title of the ParameterSliderControl .



21578
21579
21580
# File 'quick_sight/cfn_dashboard.rb', line 21578

def title
  @title
end

Class Method Details

.jsii_propertiesObject



21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
# File 'quick_sight/cfn_dashboard.rb', line 21585

def self.jsii_properties
  {
    :maximum_value => "maximumValue",
    :minimum_value => "minimumValue",
    :parameter_control_id => "parameterControlId",
    :source_parameter_name => "sourceParameterName",
    :step_size => "stepSize",
    :title => "title",
    :display_options => "displayOptions",
  }
end

Instance Method Details

#to_jsiiObject



21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
# File 'quick_sight/cfn_dashboard.rb', line 21597

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