Class: AWSCDK::QuickSight::CfnTemplate::WaterfallChartSortConfigurationProperty

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

Overview

The sort configuration of a waterfall visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(breakdown_items_limit: nil, category_sort: nil) ⇒ WaterfallChartSortConfigurationProperty

Returns a new instance of WaterfallChartSortConfigurationProperty.

Parameters:



30222
30223
30224
30225
30226
30227
# File 'quick_sight/cfn_template.rb', line 30222

def initialize(breakdown_items_limit: nil, category_sort: nil)
  @breakdown_items_limit = breakdown_items_limit.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ItemsLimitConfigurationProperty.new(**breakdown_items_limit.transform_keys(&:to_sym)) : breakdown_items_limit
  Jsii::Type.check_type(@breakdown_items_limit, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkl0ZW1zTGltaXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "breakdownItemsLimit") unless @breakdown_items_limit.nil?
  @category_sort = category_sort
  Jsii::Type.check_type(@category_sort, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5GaWVsZFNvcnRPcHRpb25zUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "categorySort") unless @category_sort.nil?
end

Instance Attribute Details

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

The limit on the number of bar groups that are displayed.



30233
30234
30235
# File 'quick_sight/cfn_template.rb', line 30233

def breakdown_items_limit
  @breakdown_items_limit
end

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

The sort configuration of the category fields.



30238
30239
30240
# File 'quick_sight/cfn_template.rb', line 30238

def category_sort
  @category_sort
end

Class Method Details

.jsii_propertiesObject



30240
30241
30242
30243
30244
30245
# File 'quick_sight/cfn_template.rb', line 30240

def self.jsii_properties
  {
    :breakdown_items_limit => "breakdownItemsLimit",
    :category_sort => "categorySort",
  }
end

Instance Method Details

#to_jsiiObject



30247
30248
30249
30250
30251
30252
30253
30254
# File 'quick_sight/cfn_template.rb', line 30247

def to_jsii
  result = {}
  result.merge!({
    "breakdownItemsLimit" => @breakdown_items_limit,
    "categorySort" => @category_sort,
  })
  result.compact
end