Class: AWSCDK::QuickSight::CfnAnalysis::ParameterControlProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::ParameterControlProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The control of a parameter that users can interact with in a dashboard or an analysis.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
Instance Attribute Summary collapse
-
#date_time_picker ⇒ AWSCDK::IResolvable, ...
readonly
A control from a date parameter that specifies date and time.
-
#dropdown ⇒ AWSCDK::IResolvable, ...
readonly
A control to display a dropdown list with buttons that are used to select a single value.
-
#list ⇒ AWSCDK::IResolvable, ...
readonly
A control to display a list with buttons or boxes that are used to select either a single value or multiple values.
-
#slider ⇒ AWSCDK::IResolvable, ...
readonly
A control to display a horizontal toggle bar.
-
#text_area ⇒ AWSCDK::IResolvable, ...
readonly
A control to display a text box that is used to enter multiple entries.
-
#text_field ⇒ AWSCDK::IResolvable, ...
readonly
A control to display a text box that is used to enter a single entry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(date_time_picker: nil, dropdown: nil, list: nil, slider: nil, text_area: nil, text_field: nil) ⇒ ParameterControlProperty
constructor
A new instance of ParameterControlProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(date_time_picker: nil, dropdown: nil, list: nil, slider: nil, text_area: nil, text_field: nil) ⇒ ParameterControlProperty
Returns a new instance of ParameterControlProperty.
20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 |
# File 'quick_sight/cfn_analysis.rb', line 20100 def initialize(date_time_picker: nil, dropdown: nil, list: nil, slider: nil, text_area: nil, text_field: nil) @date_time_picker = date_time_picker.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ParameterDateTimePickerControlProperty.new(**date_time_picker.transform_keys(&:to_sym)) : date_time_picker Jsii::Type.check_type(@date_time_picker, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhcmFtZXRlckRhdGVUaW1lUGlja2VyQ29udHJvbFByb3BlcnR5In1dfX0=")), "dateTimePicker") unless @date_time_picker.nil? @dropdown = dropdown.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ParameterDropDownControlProperty.new(**dropdown.transform_keys(&:to_sym)) : dropdown Jsii::Type.check_type(@dropdown, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhcmFtZXRlckRyb3BEb3duQ29udHJvbFByb3BlcnR5In1dfX0=")), "dropdown") unless @dropdown.nil? @list = list.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ParameterListControlProperty.new(**list.transform_keys(&:to_sym)) : list Jsii::Type.check_type(@list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhcmFtZXRlckxpc3RDb250cm9sUHJvcGVydHkifV19fQ==")), "list") unless @list.nil? @slider = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ParameterSliderControlProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@slider, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhcmFtZXRlclNsaWRlckNvbnRyb2xQcm9wZXJ0eSJ9XX19")), "slider") unless @slider.nil? @text_area = text_area.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ParameterTextAreaControlProperty.new(**text_area.transform_keys(&:to_sym)) : text_area Jsii::Type.check_type(@text_area, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhcmFtZXRlclRleHRBcmVhQ29udHJvbFByb3BlcnR5In1dfX0=")), "textArea") unless @text_area.nil? @text_field = text_field.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ParameterTextFieldControlProperty.new(**text_field.transform_keys(&:to_sym)) : text_field Jsii::Type.check_type(@text_field, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlBhcmFtZXRlclRleHRGaWVsZENvbnRyb2xQcm9wZXJ0eSJ9XX19")), "textField") unless @text_field.nil? end |
Instance Attribute Details
#date_time_picker ⇒ AWSCDK::IResolvable, ... (readonly)
A control from a date parameter that specifies date and time.
20119 20120 20121 |
# File 'quick_sight/cfn_analysis.rb', line 20119 def date_time_picker @date_time_picker end |
#dropdown ⇒ AWSCDK::IResolvable, ... (readonly)
A control to display a dropdown list with buttons that are used to select a single value.
20124 20125 20126 |
# File 'quick_sight/cfn_analysis.rb', line 20124 def dropdown @dropdown end |
#list ⇒ AWSCDK::IResolvable, ... (readonly)
A control to display a list with buttons or boxes that are used to select either a single value or multiple values.
20129 20130 20131 |
# File 'quick_sight/cfn_analysis.rb', line 20129 def list @list end |
#slider ⇒ AWSCDK::IResolvable, ... (readonly)
A control to display a horizontal toggle bar.
This is used to change a value by sliding the toggle.
20136 20137 20138 |
# File 'quick_sight/cfn_analysis.rb', line 20136 def @slider end |
#text_area ⇒ AWSCDK::IResolvable, ... (readonly)
A control to display a text box that is used to enter multiple entries.
20141 20142 20143 |
# File 'quick_sight/cfn_analysis.rb', line 20141 def text_area @text_area end |
#text_field ⇒ AWSCDK::IResolvable, ... (readonly)
A control to display a text box that is used to enter a single entry.
20146 20147 20148 |
# File 'quick_sight/cfn_analysis.rb', line 20146 def text_field @text_field end |
Class Method Details
.jsii_properties ⇒ Object
20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 |
# File 'quick_sight/cfn_analysis.rb', line 20148 def self.jsii_properties { :date_time_picker => "dateTimePicker", :dropdown => "dropdown", :list => "list", :slider => "slider", :text_area => "textArea", :text_field => "textField", } end |
Instance Method Details
#to_jsii ⇒ Object
20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 |
# File 'quick_sight/cfn_analysis.rb', line 20159 def to_jsii result = {} result.merge!({ "dateTimePicker" => @date_time_picker, "dropdown" => @dropdown, "list" => @list, "slider" => @slider, "textArea" => @text_area, "textField" => @text_field, }) result.compact end |