Class: AWSCDK::QuickSight::CfnDashboard::TotalAggregationOptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::TotalAggregationOptionProperty
- Defined in:
- quick_sight/cfn_dashboard.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::CfnDashboard::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.
31221 31222 31223 31224 31225 31226 |
# File 'quick_sight/cfn_dashboard.rb', line 31221 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::CfnDashboard::TotalAggregationFunctionProperty.new(**total_aggregation_function.transform_keys(&:to_sym)) : total_aggregation_function Jsii::Type.check_type(@total_aggregation_function, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Ub3RhbEFnZ3JlZ2F0aW9uRnVuY3Rpb25Qcm9wZXJ0eSJ9XX19")), "totalAggregationFunction") end |
Instance Attribute Details
#field_id ⇒ String (readonly)
The field id that's associated with the total aggregation option.
31232 31233 31234 |
# File 'quick_sight/cfn_dashboard.rb', line 31232 def field_id @field_id end |
#total_aggregation_function ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::TotalAggregationFunctionProperty (readonly)
The total aggregation function that you want to set for a specified field id.
31237 31238 31239 |
# File 'quick_sight/cfn_dashboard.rb', line 31237 def total_aggregation_function @total_aggregation_function end |
Class Method Details
.jsii_properties ⇒ Object
31239 31240 31241 31242 31243 31244 |
# File 'quick_sight/cfn_dashboard.rb', line 31239 def self.jsii_properties { :field_id => "fieldId", :total_aggregation_function => "totalAggregationFunction", } end |
Instance Method Details
#to_jsii ⇒ Object
31246 31247 31248 31249 31250 31251 31252 31253 |
# File 'quick_sight/cfn_dashboard.rb', line 31246 def to_jsii result = {} result.merge!({ "fieldId" => @field_id, "totalAggregationFunction" => @total_aggregation_function, }) result.compact end |