Class: AWSCDK::QuickSight::CfnDashboard::HistogramBinOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::HistogramBinOptionsProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options that determine the presentation of histogram bins.
Instance Attribute Summary collapse
-
#bin_count ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the bin count of a histogram.
-
#bin_width ⇒ AWSCDK::IResolvable, ...
readonly
The options that determine the bin width of a histogram.
-
#selected_bin_type ⇒ String?
readonly
The options that determine the selected bin type.
-
#start_value ⇒ Numeric?
readonly
The options that determine the bin start value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) ⇒ HistogramBinOptionsProperty
constructor
A new instance of HistogramBinOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) ⇒ HistogramBinOptionsProperty
Returns a new instance of HistogramBinOptionsProperty.
16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 |
# File 'quick_sight/cfn_dashboard.rb', line 16342 def initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) @bin_count = bin_count.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::BinCountOptionsProperty.new(**bin_count.transform_keys(&:to_sym)) : bin_count Jsii::Type.check_type(@bin_count, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5CaW5Db3VudE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "binCount") unless @bin_count.nil? @bin_width = bin_width.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::BinWidthOptionsProperty.new(**bin_width.transform_keys(&:to_sym)) : bin_width Jsii::Type.check_type(@bin_width, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5CaW5XaWR0aE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "binWidth") unless @bin_width.nil? @selected_bin_type = selected_bin_type Jsii::Type.check_type(@selected_bin_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "selectedBinType") unless @selected_bin_type.nil? @start_value = start_value Jsii::Type.check_type(@start_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "startValue") unless @start_value.nil? end |
Instance Attribute Details
#bin_count ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the bin count of a histogram.
16357 16358 16359 |
# File 'quick_sight/cfn_dashboard.rb', line 16357 def bin_count @bin_count end |
#bin_width ⇒ AWSCDK::IResolvable, ... (readonly)
The options that determine the bin width of a histogram.
16362 16363 16364 |
# File 'quick_sight/cfn_dashboard.rb', line 16362 def bin_width @bin_width end |
#selected_bin_type ⇒ String? (readonly)
The options that determine the selected bin type.
16367 16368 16369 |
# File 'quick_sight/cfn_dashboard.rb', line 16367 def selected_bin_type @selected_bin_type end |
#start_value ⇒ Numeric? (readonly)
The options that determine the bin start value.
16372 16373 16374 |
# File 'quick_sight/cfn_dashboard.rb', line 16372 def start_value @start_value end |
Class Method Details
.jsii_properties ⇒ Object
16374 16375 16376 16377 16378 16379 16380 16381 |
# File 'quick_sight/cfn_dashboard.rb', line 16374 def self.jsii_properties { :bin_count => "binCount", :bin_width => "binWidth", :selected_bin_type => "selectedBinType", :start_value => "startValue", } end |
Instance Method Details
#to_jsii ⇒ Object
16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 |
# File 'quick_sight/cfn_dashboard.rb', line 16383 def to_jsii result = {} result.merge!({ "binCount" => @bin_count, "binWidth" => @bin_width, "selectedBinType" => @selected_bin_type, "startValue" => @start_value, }) result.compact end |