Class: AWSCDK::QuickSight::CfnDashboard::AggregationSortConfigurationProperty

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

Overview

The configuration options to sort aggregated values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column:, sort_direction:, aggregation_function: nil) ⇒ AggregationSortConfigurationProperty

Returns a new instance of AggregationSortConfigurationProperty.

Parameters:



903
904
905
906
907
908
909
910
# File 'quick_sight/cfn_dashboard.rb', line 903

def initialize(column:, sort_direction:, aggregation_function: nil)
  @column = column.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty.new(**column.transform_keys(&:to_sym)) : column
  Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db2x1bW5JZGVudGlmaWVyUHJvcGVydHkifV19fQ==")), "column")
  @sort_direction = sort_direction
  Jsii::Type.check_type(@sort_direction, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sortDirection")
  @aggregation_function = aggregation_function.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::AggregationFunctionProperty.new(**aggregation_function.transform_keys(&:to_sym)) : aggregation_function
  Jsii::Type.check_type(@aggregation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5BZ2dyZWdhdGlvbkZ1bmN0aW9uUHJvcGVydHkifV19fQ==")), "aggregationFunction") unless @aggregation_function.nil?
end

Instance Attribute Details

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

The function that aggregates the values in Column .



929
930
931
# File 'quick_sight/cfn_dashboard.rb', line 929

def aggregation_function
  @aggregation_function
end

#sort_directionString (readonly)

The sort direction of values.

  • ASC : Sort in ascending order.
  • DESC : Sort in descending order.


924
925
926
# File 'quick_sight/cfn_dashboard.rb', line 924

def sort_direction
  @sort_direction
end

Class Method Details

.jsii_propertiesObject



931
932
933
934
935
936
937
# File 'quick_sight/cfn_dashboard.rb', line 931

def self.jsii_properties
  {
    :column => "column",
    :sort_direction => "sortDirection",
    :aggregation_function => "aggregationFunction",
  }
end

Instance Method Details

#to_jsiiObject



939
940
941
942
943
944
945
946
947
# File 'quick_sight/cfn_dashboard.rb', line 939

def to_jsii
  result = {}
  result.merge!({
    "column" => @column,
    "sortDirection" => @sort_direction,
    "aggregationFunction" => @aggregation_function,
  })
  result.compact
end