Class: AWSCDK::QuickSight::CfnDashboard::DefaultFilterListControlOptionsProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(display_options: nil, selectable_values: nil, type: nil) ⇒ DefaultFilterListControlOptionsProperty

Returns a new instance of DefaultFilterListControlOptionsProperty.

Parameters:



8552
8553
8554
8555
8556
8557
8558
8559
# File 'quick_sight/cfn_dashboard.rb', line 8552

def initialize(display_options: nil, selectable_values: nil, type: nil)
  @display_options = display_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ListControlDisplayOptionsProperty.new(**display_options.transform_keys(&:to_sym)) : display_options
  Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5MaXN0Q29udHJvbERpc3BsYXlPcHRpb25zUHJvcGVydHkifV19fQ==")), "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

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

The display options of a control.



8565
8566
8567
# File 'quick_sight/cfn_dashboard.rb', line 8565

def display_options
  @display_options
end

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

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



8570
8571
8572
# File 'quick_sight/cfn_dashboard.rb', line 8570

def selectable_values
  @selectable_values
end

#typeString? (readonly)

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

  • MULTI_SELECT : The user can select multiple entries from the list.
  • SINGLE_SELECT : The user can select a single entry from the list.


8578
8579
8580
# File 'quick_sight/cfn_dashboard.rb', line 8578

def type
  @type
end

Class Method Details

.jsii_propertiesObject



8580
8581
8582
8583
8584
8585
8586
# File 'quick_sight/cfn_dashboard.rb', line 8580

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

Instance Method Details

#to_jsiiObject



8588
8589
8590
8591
8592
8593
8594
8595
8596
# File 'quick_sight/cfn_dashboard.rb', line 8588

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