Class: AWSCDK::QuickSight::CfnTemplate::DefaultFilterDropDownControlOptionsProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(commit_mode: nil, display_options: nil, selectable_values: nil, type: nil) ⇒ DefaultFilterDropDownControlOptionsProperty

Returns a new instance of DefaultFilterDropDownControlOptionsProperty.

Parameters:



7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
# File 'quick_sight/cfn_template.rb', line 7674

def initialize(commit_mode: nil, display_options: nil, selectable_values: nil, type: nil)
  @commit_mode = commit_mode
  Jsii::Type.check_type(@commit_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitMode") unless @commit_mode.nil?
  @display_options = display_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DropDownControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRyb3BEb3duQ29udHJvbERpc3BsYXlPcHRpb25zUHJvcGVydHkifV19fQ==")), "displayOptions") unless @display_options.nil?
  @selectable_values = selectable_values.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::FilterSelectableValuesProperty.new(**selectable_values.transform_keys(&:to_sym)) : selectable_values
  Jsii::Type.check_type(@selectable_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkZpbHRlclNlbGVjdGFibGVWYWx1ZXNQcm9wZXJ0eSJ9XX19")), "selectableValues") unless @selectable_values.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#commit_modeString? (readonly)

The visibility configuration of the Apply button on a FilterDropDownControl .



7689
7690
7691
# File 'quick_sight/cfn_template.rb', line 7689

def commit_mode
  @commit_mode
end

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

A list of selectable values that are used in a control.



7699
7700
7701
# File 'quick_sight/cfn_template.rb', line 7699

def selectable_values
  @selectable_values
end

#typeString? (readonly)

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

  • MULTI_SELECT : The user can select multiple entries from a dropdown menu.
  • SINGLE_SELECT : The user can select a single entry from a dropdown menu.


7707
7708
7709
# File 'quick_sight/cfn_template.rb', line 7707

def type
  @type
end

Class Method Details

.jsii_propertiesObject



7709
7710
7711
7712
7713
7714
7715
7716
# File 'quick_sight/cfn_template.rb', line 7709

def self.jsii_properties
  {
    :commit_mode => "commitMode",
    :display_options => "displayOptions",
    :selectable_values => "selectableValues",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
# File 'quick_sight/cfn_template.rb', line 7718

def to_jsii
  result = {}
  result.merge!({
    "commitMode" => @commit_mode,
    "displayOptions" => @display_options,
    "selectableValues" => @selectable_values,
    "type" => @type,
  })
  result.compact
end