Class: AWSCDK::QuickSight::CfnDashboard::AggregationSortConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::AggregationSortConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The configuration options to sort aggregated values.
Instance Attribute Summary collapse
-
#aggregation_function ⇒ AWSCDK::IResolvable, ...
readonly
The function that aggregates the values in
Column. -
#column ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty
readonly
The column that determines the sort order of aggregated values.
-
#sort_direction ⇒ String
readonly
The sort direction of values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column:, sort_direction:, aggregation_function: nil) ⇒ AggregationSortConfigurationProperty
constructor
A new instance of AggregationSortConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column:, sort_direction:, aggregation_function: nil) ⇒ AggregationSortConfigurationProperty
Returns a new instance of AggregationSortConfigurationProperty.
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_function ⇒ AWSCDK::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 |
#column ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty (readonly)
The column that determines the sort order of aggregated values.
916 917 918 |
# File 'quick_sight/cfn_dashboard.rb', line 916 def column @column end |
#sort_direction ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |