Class: AWSCDK::QuickSight::CfnDataSet::DataPrepSimpleAggregationFunctionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_data_set.rb

Overview

A simple aggregation function that performs standard statistical operations on a column.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(function_type:, input_column_name: nil) ⇒ DataPrepSimpleAggregationFunctionProperty

Returns a new instance of DataPrepSimpleAggregationFunctionProperty.

Parameters:

  • function_type (String)

    The type of aggregation function to perform, such as COUNT , SUM , AVERAGE , MIN , MAX , MEDIAN , VARIANCE , or STANDARD_DEVIATION .

  • input_column_name (String, nil) (defaults to: nil)

    The name of the column on which to perform the aggregation function.



1884
1885
1886
1887
1888
1889
# File 'quick_sight/cfn_data_set.rb', line 1884

def initialize(function_type:, input_column_name: nil)
  @function_type = function_type
  Jsii::Type.check_type(@function_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "functionType")
  @input_column_name = input_column_name
  Jsii::Type.check_type(@input_column_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputColumnName") unless @input_column_name.nil?
end

Instance Attribute Details

#function_typeString (readonly)

The type of aggregation function to perform, such as COUNT , SUM , AVERAGE , MIN , MAX , MEDIAN , VARIANCE , or STANDARD_DEVIATION .



1895
1896
1897
# File 'quick_sight/cfn_data_set.rb', line 1895

def function_type
  @function_type
end

#input_column_nameString? (readonly)

The name of the column on which to perform the aggregation function.



1900
1901
1902
# File 'quick_sight/cfn_data_set.rb', line 1900

def input_column_name
  @input_column_name
end

Class Method Details

.jsii_propertiesObject



1902
1903
1904
1905
1906
1907
# File 'quick_sight/cfn_data_set.rb', line 1902

def self.jsii_properties
  {
    :function_type => "functionType",
    :input_column_name => "inputColumnName",
  }
end

Instance Method Details

#to_jsiiObject



1909
1910
1911
1912
1913
1914
1915
1916
# File 'quick_sight/cfn_data_set.rb', line 1909

def to_jsii
  result = {}
  result.merge!({
    "functionType" => @function_type,
    "inputColumnName" => @input_column_name,
  })
  result.compact
end