# AttributeAggregationFunctionProperty

Aggregation for attributes.

- Source: Generated at build time
- Type last changed: v2.95.0 · 7 Sep 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const attributeAggregationFunctionProperty: quicksight.CfnAnalysis.AttributeAggregationFunctionProperty = {
  simpleAttributeAggregation: 'simpleAttributeAggregation',
  valueForMultipleValues: 'valueForMultipleValues',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

attribute_aggregation_function_property = quicksight.CfnAnalysis.AttributeAggregationFunctionProperty(
    simple_attribute_aggregation="simpleAttributeAggregation",
    value_for_multiple_values="valueForMultipleValues"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

AttributeAggregationFunctionProperty attributeAggregationFunctionProperty = AttributeAggregationFunctionProperty.builder()
        .simpleAttributeAggregation("simpleAttributeAggregation")
        .valueForMultipleValues("valueForMultipleValues")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var attributeAggregationFunctionProperty = new AttributeAggregationFunctionProperty {
    SimpleAttributeAggregation = "simpleAttributeAggregation",
    ValueForMultipleValues = "valueForMultipleValues"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

attributeAggregationFunctionProperty := &AttributeAggregationFunctionProperty{
	SimpleAttributeAggregation: jsii.String("simpleAttributeAggregation"),
	ValueForMultipleValues: jsii.String("valueForMultipleValues"),
}
```

## Properties

- `simpleAttributeAggregation`: string — The built-in aggregation functions for attributes.

  - `UNIQUE_VALUE` : Returns the unique value for a field, aggregated by the dimension fields.

- `valueForMultipleValues`: string — 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 '*'.
