Class: AWSCDK::QuickSight::CfnTemplate::HistogramBinOptionsProperty

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

Overview

The options that determine the presentation of histogram bins.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil) ⇒ HistogramBinOptionsProperty

Returns a new instance of HistogramBinOptionsProperty.

Parameters:



13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
# File 'quick_sight/cfn_template.rb', line 13896

def initialize(bin_count: nil, bin_width: nil, selected_bin_type: nil, start_value: nil)
  @bin_count = bin_count.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::BinCountOptionsProperty.new(**bin_count.transform_keys(&:to_sym)) : bin_count
  Jsii::Type.check_type(@bin_count, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkJpbkNvdW50T3B0aW9uc1Byb3BlcnR5In1dfX0=")), "binCount") unless @bin_count.nil?
  @bin_width = bin_width.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::BinWidthOptionsProperty.new(**bin_width.transform_keys(&:to_sym)) : bin_width
  Jsii::Type.check_type(@bin_width, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkJpbldpZHRoT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "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_countAWSCDK::IResolvable, ... (readonly)

The options that determine the bin count of a histogram.



13911
13912
13913
# File 'quick_sight/cfn_template.rb', line 13911

def bin_count
  @bin_count
end

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

The options that determine the bin width of a histogram.



13916
13917
13918
# File 'quick_sight/cfn_template.rb', line 13916

def bin_width
  @bin_width
end

#selected_bin_typeString? (readonly)

The options that determine the selected bin type.



13921
13922
13923
# File 'quick_sight/cfn_template.rb', line 13921

def selected_bin_type
  @selected_bin_type
end

#start_valueNumeric? (readonly)

The options that determine the bin start value.



13926
13927
13928
# File 'quick_sight/cfn_template.rb', line 13926

def start_value
  @start_value
end

Class Method Details

.jsii_propertiesObject



13928
13929
13930
13931
13932
13933
13934
13935
# File 'quick_sight/cfn_template.rb', line 13928

def self.jsii_properties
  {
    :bin_count => "binCount",
    :bin_width => "binWidth",
    :selected_bin_type => "selectedBinType",
    :start_value => "startValue",
  }
end

Instance Method Details

#to_jsiiObject



13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
# File 'quick_sight/cfn_template.rb', line 13937

def to_jsii
  result = {}
  result.merge!({
    "binCount" => @bin_count,
    "binWidth" => @bin_width,
    "selectedBinType" => @selected_bin_type,
    "startValue" => @start_value,
  })
  result.compact
end