Class: AWSCDK::QuickSight::CfnDashboard::PieChartSortConfigurationProperty

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

Overview

The sort configuration of a pie chart.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(category_items_limit: nil, category_sort: nil, small_multiples_limit_configuration: nil, small_multiples_sort: nil) ⇒ PieChartSortConfigurationProperty

Returns a new instance of PieChartSortConfigurationProperty.

Parameters:



22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
# File 'quick_sight/cfn_dashboard.rb', line 22356

def initialize(category_items_limit: nil, category_sort: nil, small_multiples_limit_configuration: nil, small_multiples_sort: nil)
  @category_items_limit = category_items_limit.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ItemsLimitConfigurationProperty.new(**category_items_limit.transform_keys(&:to_sym)) : category_items_limit
  Jsii::Type.check_type(@category_items_limit, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5JdGVtc0xpbWl0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "categoryItemsLimit") unless @category_items_limit.nil?
  @category_sort = category_sort
  Jsii::Type.check_type(@category_sort, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuRmllbGRTb3J0T3B0aW9uc1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "categorySort") unless @category_sort.nil?
  @small_multiples_limit_configuration = small_multiples_limit_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ItemsLimitConfigurationProperty.new(**small_multiples_limit_configuration.transform_keys(&:to_sym)) : small_multiples_limit_configuration
  Jsii::Type.check_type(@small_multiples_limit_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5JdGVtc0xpbWl0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "smallMultiplesLimitConfiguration") unless @small_multiples_limit_configuration.nil?
  @small_multiples_sort = small_multiples_sort
  Jsii::Type.check_type(@small_multiples_sort, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuRmllbGRTb3J0T3B0aW9uc1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "smallMultiplesSort") unless @small_multiples_sort.nil?
end

Instance Attribute Details

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

The limit on the number of categories that are displayed in a pie chart.



22371
22372
22373
# File 'quick_sight/cfn_dashboard.rb', line 22371

def category_items_limit
  @category_items_limit
end

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

The sort configuration of the category fields.



22376
22377
22378
# File 'quick_sight/cfn_dashboard.rb', line 22376

def category_sort
  @category_sort
end

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

The limit on the number of small multiples panels that are displayed.



22381
22382
22383
# File 'quick_sight/cfn_dashboard.rb', line 22381

def small_multiples_limit_configuration
  @small_multiples_limit_configuration
end

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

The sort configuration of the small multiples field.



22386
22387
22388
# File 'quick_sight/cfn_dashboard.rb', line 22386

def small_multiples_sort
  @small_multiples_sort
end

Class Method Details

.jsii_propertiesObject



22388
22389
22390
22391
22392
22393
22394
22395
# File 'quick_sight/cfn_dashboard.rb', line 22388

def self.jsii_properties
  {
    :category_items_limit => "categoryItemsLimit",
    :category_sort => "categorySort",
    :small_multiples_limit_configuration => "smallMultiplesLimitConfiguration",
    :small_multiples_sort => "smallMultiplesSort",
  }
end

Instance Method Details

#to_jsiiObject



22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
# File 'quick_sight/cfn_dashboard.rb', line 22397

def to_jsii
  result = {}
  result.merge!({
    "categoryItemsLimit" => @category_items_limit,
    "categorySort" => @category_sort,
    "smallMultiplesLimitConfiguration" => @small_multiples_limit_configuration,
    "smallMultiplesSort" => @small_multiples_sort,
  })
  result.compact
end