Class: AWSCDK::QuickSight::CfnDashboard::DefaultFilterDropDownControlOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.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:



8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
# File 'quick_sight/cfn_dashboard.rb', line 8487

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::CfnDashboard::DropDownControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Ecm9wRG93bkNvbnRyb2xEaXNwbGF5T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "displayOptions") unless @display_options.nil?
  @selectable_values = selectable_values.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FilterSelectableValuesProperty.new(**selectable_values.transform_keys(&:to_sym)) : selectable_values
  Jsii::Type.check_type(@selectable_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5GaWx0ZXJTZWxlY3RhYmxlVmFsdWVzUHJvcGVydHkifV19fQ==")), "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 .



8502
8503
8504
# File 'quick_sight/cfn_dashboard.rb', line 8502

def commit_mode
  @commit_mode
end

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

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



8512
8513
8514
# File 'quick_sight/cfn_dashboard.rb', line 8512

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.


8520
8521
8522
# File 'quick_sight/cfn_dashboard.rb', line 8520

def type
  @type
end

Class Method Details

.jsii_propertiesObject



8522
8523
8524
8525
8526
8527
8528
8529
# File 'quick_sight/cfn_dashboard.rb', line 8522

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

Instance Method Details

#to_jsiiObject



8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
# File 'quick_sight/cfn_dashboard.rb', line 8531

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