Class: AWSCDK::QuickSight::CfnAnalysis::AggregationSortConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::AggregationSortConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.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::CfnAnalysis::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.
797 798 799 800 801 802 803 804 |
# File 'quick_sight/cfn_analysis.rb', line 797 def initialize(column:, sort_direction:, aggregation_function: nil) @column = column.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ColumnIdentifierProperty.new(**column.transform_keys(&:to_sym)) : column Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNvbHVtbklkZW50aWZpZXJQcm9wZXJ0eSJ9XX19")), "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::CfnAnalysis::AggregationFunctionProperty.new(**aggregation_function.transform_keys(&:to_sym)) : aggregation_function Jsii::Type.check_type(@aggregation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkFnZ3JlZ2F0aW9uRnVuY3Rpb25Qcm9wZXJ0eSJ9XX19")), "aggregationFunction") unless @aggregation_function.nil? end |
Instance Attribute Details
#aggregation_function ⇒ AWSCDK::IResolvable, ... (readonly)
The function that aggregates the values in Column .
823 824 825 |
# File 'quick_sight/cfn_analysis.rb', line 823 def aggregation_function @aggregation_function end |
#column ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::ColumnIdentifierProperty (readonly)
The column that determines the sort order of aggregated values.
810 811 812 |
# File 'quick_sight/cfn_analysis.rb', line 810 def column @column end |
#sort_direction ⇒ String (readonly)
The sort direction of values.
ASC: Sort in ascending order.DESC: Sort in descending order.
818 819 820 |
# File 'quick_sight/cfn_analysis.rb', line 818 def sort_direction @sort_direction end |
Class Method Details
.jsii_properties ⇒ Object
825 826 827 828 829 830 831 |
# File 'quick_sight/cfn_analysis.rb', line 825 def self.jsii_properties { :column => "column", :sort_direction => "sortDirection", :aggregation_function => "aggregationFunction", } end |
Instance Method Details
#to_jsii ⇒ Object
833 834 835 836 837 838 839 840 841 |
# File 'quick_sight/cfn_analysis.rb', line 833 def to_jsii result = {} result.merge!({ "column" => @column, "sortDirection" => @sort_direction, "aggregationFunction" => @aggregation_function, }) result.compact end |