Class: AWSCDK::QuickSight::CfnAnalysis::TotalAggregationOptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::TotalAggregationOptionProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The total aggregation settings map of a field id.
Instance Attribute Summary collapse
-
#field_id ⇒ String
readonly
The field id that's associated with the total aggregation option.
-
#total_aggregation_function ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::TotalAggregationFunctionProperty
readonly
The total aggregation function that you want to set for a specified field id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_id:, total_aggregation_function:) ⇒ TotalAggregationOptionProperty
constructor
A new instance of TotalAggregationOptionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_id:, total_aggregation_function:) ⇒ TotalAggregationOptionProperty
Returns a new instance of TotalAggregationOptionProperty.
30183 30184 30185 30186 30187 30188 |
# File 'quick_sight/cfn_analysis.rb', line 30183 def initialize(field_id:, total_aggregation_function:) @field_id = field_id Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId") @total_aggregation_function = total_aggregation_function.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TotalAggregationFunctionProperty.new(**total_aggregation_function.transform_keys(&:to_sym)) : total_aggregation_function Jsii::Type.check_type(@total_aggregation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRvdGFsQWdncmVnYXRpb25GdW5jdGlvblByb3BlcnR5In1dfX0=")), "totalAggregationFunction") end |
Instance Attribute Details
#field_id ⇒ String (readonly)
The field id that's associated with the total aggregation option.
30194 30195 30196 |
# File 'quick_sight/cfn_analysis.rb', line 30194 def field_id @field_id end |
#total_aggregation_function ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::TotalAggregationFunctionProperty (readonly)
The total aggregation function that you want to set for a specified field id.
30199 30200 30201 |
# File 'quick_sight/cfn_analysis.rb', line 30199 def total_aggregation_function @total_aggregation_function end |
Class Method Details
.jsii_properties ⇒ Object
30201 30202 30203 30204 30205 30206 |
# File 'quick_sight/cfn_analysis.rb', line 30201 def self.jsii_properties { :field_id => "fieldId", :total_aggregation_function => "totalAggregationFunction", } end |
Instance Method Details
#to_jsii ⇒ Object
30208 30209 30210 30211 30212 30213 30214 30215 |
# File 'quick_sight/cfn_analysis.rb', line 30208 def to_jsii result = {} result.merge!({ "fieldId" => @field_id, "totalAggregationFunction" => @total_aggregation_function, }) result.compact end |