Class: AWSCDK::QuickSight::CfnDataSet::DataPrepAggregationFunctionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSet::DataPrepAggregationFunctionProperty
- Defined in:
- quick_sight/cfn_data_set.rb
Overview
Defines the type of aggregation function to apply to data during data preparation, supporting simple and list aggregations.
Instance Attribute Summary collapse
-
#list_aggregation ⇒ AWSCDK::IResolvable, ...
readonly
A list aggregation function that concatenates values from multiple rows into a single delimited string.
- #percentile_aggregation ⇒ AWSCDK::IResolvable, ... readonly
-
#simple_aggregation ⇒ AWSCDK::IResolvable, ...
readonly
A simple aggregation function such as
SUM,COUNT,AVERAGE,MIN,MAX,MEDIAN,VARIANCE, orSTANDARD_DEVIATION.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(list_aggregation: nil, percentile_aggregation: nil, simple_aggregation: nil) ⇒ DataPrepAggregationFunctionProperty
constructor
A new instance of DataPrepAggregationFunctionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(list_aggregation: nil, percentile_aggregation: nil, simple_aggregation: nil) ⇒ DataPrepAggregationFunctionProperty
Returns a new instance of DataPrepAggregationFunctionProperty.
1689 1690 1691 1692 1693 1694 1695 1696 |
# File 'quick_sight/cfn_data_set.rb', line 1689 def initialize(list_aggregation: nil, percentile_aggregation: nil, simple_aggregation: nil) @list_aggregation = list_aggregation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDataSet::DataPrepListAggregationFunctionProperty.new(**list_aggregation.transform_keys(&:to_sym)) : list_aggregation Jsii::Type.check_type(@list_aggregation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTZXQuRGF0YVByZXBMaXN0QWdncmVnYXRpb25GdW5jdGlvblByb3BlcnR5In1dfX0=")), "listAggregation") unless @list_aggregation.nil? @percentile_aggregation = percentile_aggregation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDataSet::DataPrepPercentileAggregationFunctionProperty.new(**percentile_aggregation.transform_keys(&:to_sym)) : percentile_aggregation Jsii::Type.check_type(@percentile_aggregation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTZXQuRGF0YVByZXBQZXJjZW50aWxlQWdncmVnYXRpb25GdW5jdGlvblByb3BlcnR5In1dfX0=")), "percentileAggregation") unless @percentile_aggregation.nil? @simple_aggregation = simple_aggregation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDataSet::DataPrepSimpleAggregationFunctionProperty.new(**simple_aggregation.transform_keys(&:to_sym)) : simple_aggregation Jsii::Type.check_type(@simple_aggregation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhdGFTZXQuRGF0YVByZXBTaW1wbGVBZ2dyZWdhdGlvbkZ1bmN0aW9uUHJvcGVydHkifV19fQ==")), "simpleAggregation") unless @simple_aggregation.nil? end |
Instance Attribute Details
#list_aggregation ⇒ AWSCDK::IResolvable, ... (readonly)
A list aggregation function that concatenates values from multiple rows into a single delimited string.
1702 1703 1704 |
# File 'quick_sight/cfn_data_set.rb', line 1702 def list_aggregation @list_aggregation end |
#percentile_aggregation ⇒ AWSCDK::IResolvable, ... (readonly)
1705 1706 1707 |
# File 'quick_sight/cfn_data_set.rb', line 1705 def percentile_aggregation @percentile_aggregation end |
#simple_aggregation ⇒ AWSCDK::IResolvable, ... (readonly)
A simple aggregation function such as SUM , COUNT , AVERAGE , MIN , MAX , MEDIAN , VARIANCE , or STANDARD_DEVIATION .
1710 1711 1712 |
# File 'quick_sight/cfn_data_set.rb', line 1710 def simple_aggregation @simple_aggregation end |
Class Method Details
.jsii_properties ⇒ Object
1712 1713 1714 1715 1716 1717 1718 |
# File 'quick_sight/cfn_data_set.rb', line 1712 def self.jsii_properties { :list_aggregation => "listAggregation", :percentile_aggregation => "percentileAggregation", :simple_aggregation => "simpleAggregation", } end |
Instance Method Details
#to_jsii ⇒ Object
1720 1721 1722 1723 1724 1725 1726 1727 1728 |
# File 'quick_sight/cfn_data_set.rb', line 1720 def to_jsii result = {} result.merge!({ "listAggregation" => @list_aggregation, "percentileAggregation" => @percentile_aggregation, "simpleAggregation" => @simple_aggregation, }) result.compact end |