Class: AWSCDK::QuickSight::CfnAnalysis::AttributeAggregationFunctionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::AttributeAggregationFunctionProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
Aggregation for attributes.
Instance Attribute Summary collapse
-
#simple_attribute_aggregation ⇒ String?
readonly
The built-in aggregation functions for attributes.
-
#value_for_multiple_values ⇒ String?
readonly
Used by the
UNIQUE_VALUEaggregation function.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(simple_attribute_aggregation: nil, value_for_multiple_values: nil) ⇒ AttributeAggregationFunctionProperty
constructor
A new instance of AttributeAggregationFunctionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(simple_attribute_aggregation: nil, value_for_multiple_values: nil) ⇒ AttributeAggregationFunctionProperty
Returns a new instance of AttributeAggregationFunctionProperty.
1396 1397 1398 1399 1400 1401 |
# File 'quick_sight/cfn_analysis.rb', line 1396 def initialize(simple_attribute_aggregation: nil, value_for_multiple_values: nil) @simple_attribute_aggregation = simple_attribute_aggregation Jsii::Type.check_type(@simple_attribute_aggregation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "simpleAttributeAggregation") unless @simple_attribute_aggregation.nil? @value_for_multiple_values = value_for_multiple_values Jsii::Type.check_type(@value_for_multiple_values, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "valueForMultipleValues") unless @value_for_multiple_values.nil? end |
Instance Attribute Details
#simple_attribute_aggregation ⇒ String? (readonly)
The built-in aggregation functions for attributes.
UNIQUE_VALUE: Returns the unique value for a field, aggregated by the dimension fields.
1409 1410 1411 |
# File 'quick_sight/cfn_analysis.rb', line 1409 def simple_attribute_aggregation @simple_attribute_aggregation end |
#value_for_multiple_values ⇒ String? (readonly)
Used by the UNIQUE_VALUE aggregation function.
If there are multiple values for the field used by the aggregation, the value for this property will be returned instead. Defaults to '*'.
1416 1417 1418 |
# File 'quick_sight/cfn_analysis.rb', line 1416 def value_for_multiple_values @value_for_multiple_values end |
Class Method Details
.jsii_properties ⇒ Object
1418 1419 1420 1421 1422 1423 |
# File 'quick_sight/cfn_analysis.rb', line 1418 def self.jsii_properties { :simple_attribute_aggregation => "simpleAttributeAggregation", :value_for_multiple_values => "valueForMultipleValues", } end |
Instance Method Details
#to_jsii ⇒ Object
1425 1426 1427 1428 1429 1430 1431 1432 |
# File 'quick_sight/cfn_analysis.rb', line 1425 def to_jsii result = {} result.merge!({ "simpleAttributeAggregation" => @simple_attribute_aggregation, "valueForMultipleValues" => @value_for_multiple_values, }) result.compact end |