Skip to content
v2.278.0

TotalAggregationOptionProperty Struct ​

The total aggregation settings map of a field id.

Example ​

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
# 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
// 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();
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"
    }
};
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 ​

fieldIdstringfield_idstrfieldIdStringFieldIdstringFieldId*string required #
The field id that's associated with the total aggregation option.
totalAggregationFunctionIResolvable | CfnAnalysis.TotalAggregationFunctionPropertytotal_aggregation_functiontyping.Union[IResolvable, TotalAggregationFunctionProperty]totalAggregationFunctionIResolvableTotalAggregationFunctionIResolvableTotalAggregationFunctioninterface{} required #
The total aggregation function that you want to set for a specified field id.