Class: AWSCDK::QuickSight::CfnDashboard::TotalAggregationOptionProperty

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

Overview

The total aggregation settings map of a field id.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_id:, total_aggregation_function:) ⇒ TotalAggregationOptionProperty

Returns a new instance of TotalAggregationOptionProperty.

Parameters:



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_idString (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_functionAWSCDK::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_propertiesObject



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_jsiiObject



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