Class: AWSCDK::QuickSight::CfnTemplate::FilterSliderControlProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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(filter_control_id:, maximum_value:, minimum_value:, source_filter_id:, step_size:, title:, display_options: nil, type: nil) ⇒ FilterSliderControlProperty

Returns a new instance of FilterSliderControlProperty.

Parameters:

  • filter_control_id (String)

    The ID of the FilterSliderControl .

  • 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.

  • source_filter_id (String)

    The source filter ID of the FilterSliderControl .

  • step_size (Numeric)

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

  • title (String)

    The title of the FilterSliderControl .

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

    The display options of a control.

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

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



10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
# File 'quick_sight/cfn_template.rb', line 10500

def initialize(filter_control_id:, maximum_value:, minimum_value:, source_filter_id:, step_size:, title:, display_options: nil, type: nil)
  @filter_control_id = filter_control_id
  Jsii::Type.check_type(@filter_control_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filterControlId")
  @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")
  @source_filter_id = source_filter_id
  Jsii::Type.check_type(@source_filter_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceFilterId")
  @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::CfnTemplate::SliderControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlNsaWRlckNvbnRyb2xEaXNwbGF5T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "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.



10556
10557
10558
# File 'quick_sight/cfn_template.rb', line 10556

def display_options
  @display_options
end

#filter_control_idString (readonly)

The ID of the FilterSliderControl .



10523
10524
10525
# File 'quick_sight/cfn_template.rb', line 10523

def filter_control_id
  @filter_control_id
end

#maximum_valueNumeric (readonly)

Note:

Default: - 0

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



10529
10530
10531
# File 'quick_sight/cfn_template.rb', line 10529

def maximum_value
  @maximum_value
end

#minimum_valueNumeric (readonly)

Note:

Default: - 0

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



10535
10536
10537
# File 'quick_sight/cfn_template.rb', line 10535

def minimum_value
  @minimum_value
end

#source_filter_idString (readonly)

The source filter ID of the FilterSliderControl .



10540
10541
10542
# File 'quick_sight/cfn_template.rb', line 10540

def source_filter_id
  @source_filter_id
end

#step_sizeNumeric (readonly)

Note:

Default: - 0

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



10546
10547
10548
# File 'quick_sight/cfn_template.rb', line 10546

def step_size
  @step_size
end

#titleString (readonly)

The title of the FilterSliderControl .



10551
10552
10553
# File 'quick_sight/cfn_template.rb', line 10551

def title
  @title
end

#typeString? (readonly)

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

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


10564
10565
10566
# File 'quick_sight/cfn_template.rb', line 10564

def type
  @type
end

Class Method Details

.jsii_propertiesObject



10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
# File 'quick_sight/cfn_template.rb', line 10566

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

Instance Method Details

#to_jsiiObject



10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
# File 'quick_sight/cfn_template.rb', line 10579

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