Class: AWSCDK::QuickSight::CfnDashboard::CategoricalMeasureFieldProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::CategoricalMeasureFieldProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The measure type field with categorical type columns.
Instance Attribute Summary collapse
-
#aggregation_function ⇒ String?
readonly
The aggregation function of the measure field.
-
#column ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty
readonly
The column that is used in the
CategoricalMeasureField. -
#field_id ⇒ String
readonly
The custom field ID.
-
#format_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The format configuration of the field.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column:, field_id:, aggregation_function: nil, format_configuration: nil) ⇒ CategoricalMeasureFieldProperty
constructor
A new instance of CategoricalMeasureFieldProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column:, field_id:, aggregation_function: nil, format_configuration: nil) ⇒ CategoricalMeasureFieldProperty
Returns a new instance of CategoricalMeasureFieldProperty.
3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 |
# File 'quick_sight/cfn_dashboard.rb', line 3377 def initialize(column:, field_id:, aggregation_function: nil, format_configuration: nil) @column = column.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty.new(**column.transform_keys(&:to_sym)) : column Jsii::Type.check_type(@column, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Db2x1bW5JZGVudGlmaWVyUHJvcGVydHkifV19fQ==")), "column") @field_id = field_id Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId") @aggregation_function = aggregation_function Jsii::Type.check_type(@aggregation_function, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aggregationFunction") unless @aggregation_function.nil? @format_configuration = format_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::StringFormatConfigurationProperty.new(**format_configuration.transform_keys(&:to_sym)) : format_configuration Jsii::Type.check_type(@format_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TdHJpbmdGb3JtYXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "formatConfiguration") unless @format_configuration.nil? end |
Instance Attribute Details
#aggregation_function ⇒ String? (readonly)
The aggregation function of the measure field.
3402 3403 3404 |
# File 'quick_sight/cfn_dashboard.rb', line 3402 def aggregation_function @aggregation_function end |
#column ⇒ AWSCDK::IResolvable, AWSCDK::QuickSight::CfnDashboard::ColumnIdentifierProperty (readonly)
The column that is used in the CategoricalMeasureField .
3392 3393 3394 |
# File 'quick_sight/cfn_dashboard.rb', line 3392 def column @column end |
#field_id ⇒ String (readonly)
The custom field ID.
3397 3398 3399 |
# File 'quick_sight/cfn_dashboard.rb', line 3397 def field_id @field_id end |
#format_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The format configuration of the field.
3407 3408 3409 |
# File 'quick_sight/cfn_dashboard.rb', line 3407 def format_configuration @format_configuration end |
Class Method Details
.jsii_properties ⇒ Object
3409 3410 3411 3412 3413 3414 3415 3416 |
# File 'quick_sight/cfn_dashboard.rb', line 3409 def self.jsii_properties { :column => "column", :field_id => "fieldId", :aggregation_function => "aggregationFunction", :format_configuration => "formatConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 |
# File 'quick_sight/cfn_dashboard.rb', line 3418 def to_jsii result = {} result.merge!({ "column" => @column, "fieldId" => @field_id, "aggregationFunction" => @aggregation_function, "formatConfiguration" => @format_configuration, }) result.compact end |