Class: AWSCDK::QuickSight::CfnTemplate::AggregationSortConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::AggregationSortConfigurationProperty
- Defined in:
- quick_sight/cfn_template.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::CfnTemplate::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.
779 780 781 782 783 784 785 786 |
# File 'quick_sight/cfn_template.rb', line 779 def initialize(column:, sort_direction:, aggregation_function: nil) @column = column.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ColumnIdentifierProperty.new(**column.transform_keys(&:to_sym)) : column Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkNvbHVtbklkZW50aWZpZXJQcm9wZXJ0eSJ9XX19")), "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::CfnTemplate::AggregationFunctionProperty.new(**aggregation_function.transform_keys(&:to_sym)) : aggregation_function Jsii::Type.check_type(@aggregation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkFnZ3JlZ2F0aW9uRnVuY3Rpb25Qcm9wZXJ0eSJ9XX19")), "aggregationFunction") unless @aggregation_function.nil? end |
Instance Attribute Details
#aggregation_function ⇒ AWSCDK::IResolvable, ... (readonly)
The function that aggregates the values in Column .
805 806 807 |
# File 'quick_sight/cfn_template.rb', line 805 def aggregation_function @aggregation_function end |
#column ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::ColumnIdentifierProperty (readonly)
The column that determines the sort order of aggregated values.
792 793 794 |
# File 'quick_sight/cfn_template.rb', line 792 def column @column end |
#sort_direction ⇒ String (readonly)
The sort direction of values.
ASC: Sort in ascending order.DESC: Sort in descending order.
800 801 802 |
# File 'quick_sight/cfn_template.rb', line 800 def sort_direction @sort_direction end |
Class Method Details
.jsii_properties ⇒ Object
807 808 809 810 811 812 813 |
# File 'quick_sight/cfn_template.rb', line 807 def self.jsii_properties { :column => "column", :sort_direction => "sortDirection", :aggregation_function => "aggregationFunction", } end |
Instance Method Details
#to_jsii ⇒ Object
815 816 817 818 819 820 821 822 823 |
# File 'quick_sight/cfn_template.rb', line 815 def to_jsii result = {} result.merge!({ "column" => @column, "sortDirection" => @sort_direction, "aggregationFunction" => @aggregation_function, }) result.compact end |