Class: AWSCDK::QuickSight::CfnDashboard::ColumnSortProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::ColumnSortProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The sort configuration for a column that is not used in a field well.
Instance Attribute Summary collapse
-
#aggregation_function ⇒ AWSCDK::IResolvable, ...
readonly
The aggregation function that is defined in the column sort.
-
#direction ⇒ String
readonly
The sort direction.
- #sort_by ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(direction:, sort_by:, aggregation_function: nil) ⇒ ColumnSortProperty
constructor
A new instance of ColumnSortProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(direction:, sort_by:, aggregation_function: nil) ⇒ ColumnSortProperty
Returns a new instance of ColumnSortProperty.
4028 4029 4030 4031 4032 4033 4034 4035 |
# File 'quick_sight/cfn_dashboard.rb', line 4028 def initialize(direction:, sort_by:, aggregation_function: nil) @direction = direction Jsii::Type.check_type(@direction, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "direction") @sort_by = sort_by.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty.new(**sort_by.transform_keys(&:to_sym)) : sort_by Jsii::Type.check_type(@sort_by, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db2x1bW5JZGVudGlmaWVyUHJvcGVydHkifV19fQ==")), "sortBy") @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 aggregation function that is defined in the column sort.
4049 4050 4051 |
# File 'quick_sight/cfn_dashboard.rb', line 4049 def aggregation_function @aggregation_function end |
#direction ⇒ String (readonly)
The sort direction.
4041 4042 4043 |
# File 'quick_sight/cfn_dashboard.rb', line 4041 def direction @direction end |
#sort_by ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty (readonly)
4044 4045 4046 |
# File 'quick_sight/cfn_dashboard.rb', line 4044 def sort_by @sort_by end |
Class Method Details
.jsii_properties ⇒ Object
4051 4052 4053 4054 4055 4056 4057 |
# File 'quick_sight/cfn_dashboard.rb', line 4051 def self.jsii_properties { :direction => "direction", :sort_by => "sortBy", :aggregation_function => "aggregationFunction", } end |
Instance Method Details
#to_jsii ⇒ Object
4059 4060 4061 4062 4063 4064 4065 4066 4067 |
# File 'quick_sight/cfn_dashboard.rb', line 4059 def to_jsii result = {} result.merge!({ "direction" => @direction, "sortBy" => @sort_by, "aggregationFunction" => @aggregation_function, }) result.compact end |