Class: AWSCDK::QuickSight::CfnDataSet::AggregationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSet::AggregationProperty
- Defined in:
- quick_sight/cfn_data_set.rb
Overview
Defines an aggregation function to be applied to grouped data, creating a new column with the calculated result.
Instance Attribute Summary collapse
-
#aggregation_function ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDataSet::DataPrepAggregationFunctionProperty
readonly
The aggregation function to apply, such as
SUM,COUNT,AVERAGE,MIN,MAX. -
#new_column_id ⇒ String
readonly
A unique identifier for the new column that will contain the aggregated values.
-
#new_column_name ⇒ String
readonly
The name for the new column that will contain the aggregated values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(aggregation_function:, new_column_id:, new_column_name:) ⇒ AggregationProperty
constructor
A new instance of AggregationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aggregation_function:, new_column_id:, new_column_name:) ⇒ AggregationProperty
Returns a new instance of AggregationProperty.
935 936 937 938 939 940 941 942 |
# File 'quick_sight/cfn_data_set.rb', line 935 def initialize(aggregation_function:, new_column_id:, new_column_name:) @aggregation_function = aggregation_function.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDataSet::DataPrepAggregationFunctionProperty.new(**aggregation_function.transform_keys(&:to_sym)) : aggregation_function Jsii::Type.check_type(@aggregation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTZXQuRGF0YVByZXBBZ2dyZWdhdGlvbkZ1bmN0aW9uUHJvcGVydHkifV19fQ==")), "aggregationFunction") @new_column_id = new_column_id Jsii::Type.check_type(@new_column_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "newColumnId") @new_column_name = new_column_name Jsii::Type.check_type(@new_column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "newColumnName") end |
Instance Attribute Details
#aggregation_function ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDataSet::DataPrepAggregationFunctionProperty (readonly)
The aggregation function to apply, such as SUM , COUNT , AVERAGE , MIN , MAX.
948 949 950 |
# File 'quick_sight/cfn_data_set.rb', line 948 def aggregation_function @aggregation_function end |
#new_column_id ⇒ String (readonly)
A unique identifier for the new column that will contain the aggregated values.
953 954 955 |
# File 'quick_sight/cfn_data_set.rb', line 953 def new_column_id @new_column_id end |
#new_column_name ⇒ String (readonly)
The name for the new column that will contain the aggregated values.
958 959 960 |
# File 'quick_sight/cfn_data_set.rb', line 958 def new_column_name @new_column_name end |
Class Method Details
.jsii_properties ⇒ Object
960 961 962 963 964 965 966 |
# File 'quick_sight/cfn_data_set.rb', line 960 def self.jsii_properties { :aggregation_function => "aggregationFunction", :new_column_id => "newColumnId", :new_column_name => "newColumnName", } end |
Instance Method Details
#to_jsii ⇒ Object
968 969 970 971 972 973 974 975 976 |
# File 'quick_sight/cfn_data_set.rb', line 968 def to_jsii result = {} result.merge!({ "aggregationFunction" => @aggregation_function, "newColumnId" => @new_column_id, "newColumnName" => @new_column_name, }) result.compact end |