# TotalAggregationOptionProperty

The total aggregation settings map of a field id.

- Source: Generated at build time
- Type last changed: v2.103.0 · 26 Oct 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 totalAggregationOptionProperty: quicksight.CfnAnalysis.TotalAggregationOptionProperty = {
  fieldId: 'fieldId',
  totalAggregationFunction: {
    simpleTotalAggregationFunction: 'simpleTotalAggregationFunction',
  },
};
```

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

total_aggregation_option_property = quicksight.CfnAnalysis.TotalAggregationOptionProperty(
    field_id="fieldId",
    total_aggregation_function=quicksight.CfnAnalysis.TotalAggregationFunctionProperty(
        simple_total_aggregation_function="simpleTotalAggregationFunction"
    )
)
```

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

TotalAggregationOptionProperty totalAggregationOptionProperty = TotalAggregationOptionProperty.builder()
        .fieldId("fieldId")
        .totalAggregationFunction(TotalAggregationFunctionProperty.builder()
                .simpleTotalAggregationFunction("simpleTotalAggregationFunction")
                .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 totalAggregationOptionProperty = new TotalAggregationOptionProperty {
    FieldId = "fieldId",
    TotalAggregationFunction = new TotalAggregationFunctionProperty {
        SimpleTotalAggregationFunction = "simpleTotalAggregationFunction"
    }
};
```

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"

totalAggregationOptionProperty := &TotalAggregationOptionProperty{
	FieldId: jsii.String("fieldId"),
	TotalAggregationFunction: &TotalAggregationFunctionProperty{
		SimpleTotalAggregationFunction: jsii.String("simpleTotalAggregationFunction"),
	},
}
```

## Properties

- `fieldId`: string (required) — The field id that's associated with the total aggregation option.

- `totalAggregationFunction`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.TotalAggregationFunctionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.TotalAggregationFunctionProperty.html) (required) — The total aggregation function that you want to set for a specified field id.
