Class: AWSCDK::QuickSight::CfnTemplate::DefaultFilterListControlOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::DefaultFilterListControlOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The default options that correspond to the List filter control type.
Instance Attribute Summary collapse
-
#display_options ⇒ AWSCDK::IResolvable, ...
readonly
The display options of a control.
-
#selectable_values ⇒ AWSCDK::IResolvable, ...
readonly
A list of selectable values that are used in a control.
-
#type ⇒ String?
readonly
The type of the
DefaultFilterListControlOptions.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(display_options: nil, selectable_values: nil, type: nil) ⇒ DefaultFilterListControlOptionsProperty
constructor
A new instance of DefaultFilterListControlOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(display_options: nil, selectable_values: nil, type: nil) ⇒ DefaultFilterListControlOptionsProperty
Returns a new instance of DefaultFilterListControlOptionsProperty.
7739 7740 7741 7742 7743 7744 7745 7746 |
# File 'quick_sight/cfn_template.rb', line 7739 def initialize(display_options: nil, selectable_values: nil, type: nil) @display_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ListControlDisplayOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@display_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkxpc3RDb250cm9sRGlzcGxheU9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "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
#display_options ⇒ AWSCDK::IResolvable, ... (readonly)
The display options of a control.
7752 7753 7754 |
# File 'quick_sight/cfn_template.rb', line 7752 def @display_options end |
#selectable_values ⇒ AWSCDK::IResolvable, ... (readonly)
A list of selectable values that are used in a control.
7757 7758 7759 |
# File 'quick_sight/cfn_template.rb', line 7757 def selectable_values @selectable_values end |
#type ⇒ String? (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.
7765 7766 7767 |
# File 'quick_sight/cfn_template.rb', line 7765 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
7767 7768 7769 7770 7771 7772 7773 |
# File 'quick_sight/cfn_template.rb', line 7767 def self.jsii_properties { :display_options => "displayOptions", :selectable_values => "selectableValues", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
7775 7776 7777 7778 7779 7780 7781 7782 7783 |
# File 'quick_sight/cfn_template.rb', line 7775 def to_jsii result = {} result.merge!({ "displayOptions" => @display_options, "selectableValues" => @selectable_values, "type" => @type, }) result.compact end |