# DataPrepAggregationFunctionProperty

Defines the type of aggregation function to apply to data during data preparation, supporting simple and list aggregations.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## 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 dataPrepAggregationFunctionProperty: quicksight.CfnDataSet.DataPrepAggregationFunctionProperty = {
  listAggregation: {
    distinct: false,
    separator: 'separator',

    // the properties below are optional
    inputColumnName: 'inputColumnName',
  },
  percentileAggregation: {
    percentileValue: 123,

    // the properties below are optional
    inputColumnName: 'inputColumnName',
  },
  simpleAggregation: {
    functionType: 'functionType',

    // the properties below are optional
    inputColumnName: 'inputColumnName',
  },
};
```

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

data_prep_aggregation_function_property = quicksight.CfnDataSet.DataPrepAggregationFunctionProperty(
    list_aggregation=quicksight.CfnDataSet.DataPrepListAggregationFunctionProperty(
        distinct=False,
        separator="separator",

        # the properties below are optional
        input_column_name="inputColumnName"
    ),
    percentile_aggregation=quicksight.CfnDataSet.DataPrepPercentileAggregationFunctionProperty(
        percentile_value=123,

        # the properties below are optional
        input_column_name="inputColumnName"
    ),
    simple_aggregation=quicksight.CfnDataSet.DataPrepSimpleAggregationFunctionProperty(
        function_type="functionType",

        # the properties below are optional
        input_column_name="inputColumnName"
    )
)
```

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.*;

DataPrepAggregationFunctionProperty dataPrepAggregationFunctionProperty = DataPrepAggregationFunctionProperty.builder()
        .listAggregation(DataPrepListAggregationFunctionProperty.builder()
                .distinct(false)
                .separator("separator")

                // the properties below are optional
                .inputColumnName("inputColumnName")
                .build())
        .percentileAggregation(DataPrepPercentileAggregationFunctionProperty.builder()
                .percentileValue(123)

                // the properties below are optional
                .inputColumnName("inputColumnName")
                .build())
        .simpleAggregation(DataPrepSimpleAggregationFunctionProperty.builder()
                .functionType("functionType")

                // the properties below are optional
                .inputColumnName("inputColumnName")
                .build())
        .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 dataPrepAggregationFunctionProperty = new DataPrepAggregationFunctionProperty {
    ListAggregation = new DataPrepListAggregationFunctionProperty {
        Distinct = false,
        Separator = "separator",

        // the properties below are optional
        InputColumnName = "inputColumnName"
    },
    PercentileAggregation = new DataPrepPercentileAggregationFunctionProperty {
        PercentileValue = 123,

        // the properties below are optional
        InputColumnName = "inputColumnName"
    },
    SimpleAggregation = new DataPrepSimpleAggregationFunctionProperty {
        FunctionType = "functionType",

        // the properties below are optional
        InputColumnName = "inputColumnName"
    }
};
```

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"

dataPrepAggregationFunctionProperty := &DataPrepAggregationFunctionProperty{
	ListAggregation: &DataPrepListAggregationFunctionProperty{
		Distinct: jsii.Boolean(false),
		Separator: jsii.String("separator"),

		// the properties below are optional
		InputColumnName: jsii.String("inputColumnName"),
	},
	PercentileAggregation: &DataPrepPercentileAggregationFunctionProperty{
		PercentileValue: jsii.Number(123),

		// the properties below are optional
		InputColumnName: jsii.String("inputColumnName"),
	},
	SimpleAggregation: &DataPrepSimpleAggregationFunctionProperty{
		FunctionType: jsii.String("functionType"),

		// the properties below are optional
		InputColumnName: jsii.String("inputColumnName"),
	},
}
```

## Properties

- `listAggregation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.DataPrepListAggregationFunctionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.DataPrepListAggregationFunctionProperty.html) — A list aggregation function that concatenates values from multiple rows into a single delimited string.

- `percentileAggregation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.DataPrepPercentileAggregationFunctionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.DataPrepPercentileAggregationFunctionProperty.html)

- `simpleAggregation`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.DataPrepSimpleAggregationFunctionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.DataPrepSimpleAggregationFunctionProperty.html) — A simple aggregation function such as `SUM` , `COUNT` , `AVERAGE` , `MIN` , `MAX` , `MEDIAN` , `VARIANCE` , or `STANDARD_DEVIATION` .
