Class: AWSCDK::QuickSight::CfnDashboard::FilterDropDownControlProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::FilterDropDownControlProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
A control to display a dropdown list with buttons that are used to select a single value.
Instance Attribute Summary collapse
-
#cascading_control_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.
-
#commit_mode ⇒ String?
readonly
The visibility configuration of the Apply button on a
FilterDropDownControl. -
#display_options ⇒ AWSCDK::IResolvable, ...
readonly
The display options of the
FilterDropDownControl. -
#filter_control_id ⇒ String
readonly
The ID of the
FilterDropDownControl. -
#selectable_values ⇒ AWSCDK::IResolvable, ...
readonly
A list of selectable values that are used in a control.
-
#source_filter_id ⇒ String
readonly
The source filter ID of the
FilterDropDownControl. -
#title ⇒ String
readonly
The title of the
FilterDropDownControl. -
#type ⇒ String?
readonly
The type of the
FilterDropDownControl.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filter_control_id:, source_filter_id:, title:, cascading_control_configuration: nil, commit_mode: nil, display_options: nil, selectable_values: nil, type: nil) ⇒ FilterDropDownControlProperty
constructor
A new instance of FilterDropDownControlProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(filter_control_id:, source_filter_id:, title:, cascading_control_configuration: nil, commit_mode: nil, display_options: nil, selectable_values: nil, type: nil) ⇒ FilterDropDownControlProperty
Returns a new instance of FilterDropDownControlProperty.
10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 |
# File 'quick_sight/cfn_dashboard.rb', line 10736 def initialize(filter_control_id:, source_filter_id:, title:, cascading_control_configuration: nil, commit_mode: nil, display_options: nil, selectable_values: nil, type: nil) @filter_control_id = filter_control_id Jsii::Type.check_type(@filter_control_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filterControlId") @source_filter_id = source_filter_id Jsii::Type.check_type(@source_filter_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceFilterId") @title = title Jsii::Type.check_type(@title, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "title") @cascading_control_configuration = cascading_control_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::CascadingControlConfigurationProperty.new(**cascading_control_configuration.transform_keys(&:to_sym)) : cascading_control_configuration Jsii::Type.check_type(@cascading_control_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DYXNjYWRpbmdDb250cm9sQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "cascadingControlConfiguration") unless @cascading_control_configuration.nil? @commit_mode = commit_mode Jsii::Type.check_type(@commit_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "commitMode") unless @commit_mode.nil? @display_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DropDownControlDisplayOptionsProperty.new(**.transform_keys(&:to_sym)) : 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
#cascading_control_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The values that are displayed in a control can be configured to only show values that are valid based on what's selected in other controls.
10774 10775 10776 |
# File 'quick_sight/cfn_dashboard.rb', line 10774 def cascading_control_configuration @cascading_control_configuration end |
#commit_mode ⇒ String? (readonly)
The visibility configuration of the Apply button on a FilterDropDownControl .
10779 10780 10781 |
# File 'quick_sight/cfn_dashboard.rb', line 10779 def commit_mode @commit_mode end |
#display_options ⇒ AWSCDK::IResolvable, ... (readonly)
The display options of the FilterDropDownControl .
10784 10785 10786 |
# File 'quick_sight/cfn_dashboard.rb', line 10784 def @display_options end |
#filter_control_id ⇒ String (readonly)
The ID of the FilterDropDownControl .
10759 10760 10761 |
# File 'quick_sight/cfn_dashboard.rb', line 10759 def filter_control_id @filter_control_id end |
#selectable_values ⇒ AWSCDK::IResolvable, ... (readonly)
A list of selectable values that are used in a control.
10789 10790 10791 |
# File 'quick_sight/cfn_dashboard.rb', line 10789 def selectable_values @selectable_values end |
#source_filter_id ⇒ String (readonly)
The source filter ID of the FilterDropDownControl .
10764 10765 10766 |
# File 'quick_sight/cfn_dashboard.rb', line 10764 def source_filter_id @source_filter_id end |
#title ⇒ String (readonly)
The title of the FilterDropDownControl .
10769 10770 10771 |
# File 'quick_sight/cfn_dashboard.rb', line 10769 def title @title end |
#type ⇒ String? (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.
10797 10798 10799 |
# File 'quick_sight/cfn_dashboard.rb', line 10797 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 |
# File 'quick_sight/cfn_dashboard.rb', line 10799 def self.jsii_properties { :filter_control_id => "filterControlId", :source_filter_id => "sourceFilterId", :title => "title", :cascading_control_configuration => "cascadingControlConfiguration", :commit_mode => "commitMode", :display_options => "displayOptions", :selectable_values => "selectableValues", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 |
# File 'quick_sight/cfn_dashboard.rb', line 10812 def to_jsii result = {} result.merge!({ "filterControlId" => @filter_control_id, "sourceFilterId" => @source_filter_id, "title" => @title, "cascadingControlConfiguration" => @cascading_control_configuration, "commitMode" => @commit_mode, "displayOptions" => @display_options, "selectableValues" => @selectable_values, "type" => @type, }) result.compact end |