This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::CleanRooms::IntermediateTable AggregationThreshold
Specifies the minimum number of distinct identities that each query output group must represent.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "AllowedAggregateExpressionType" :String, "IdentityColumns" :[ String, ... ], "MinimumIdentityCount" :Integer, "OutputColumnThresholds" :[ OutputColumnThreshold, ... ], "Type" :String}
YAML
AllowedAggregateExpressionType:StringIdentityColumns:- StringMinimumIdentityCount:IntegerOutputColumnThresholds:- OutputColumnThresholdType:String
Properties
AllowedAggregateExpressionType-
Specifies whether a query can aggregate a transformed column. This applies to the arguments of both aggregate and window functions. Valid values are:
COLUMNS_ONLY– A query can aggregate only a direct column reference, such asSUM(amount), or a constant. AWS Clean Rooms rejects a query that transforms a column and then aggregates it, such asSUM(amount * 2)orSUM(ROUND(amount)).ANY_EXPRESSION– A query can aggregate any expression. This includes arithmetic, such asSUM(price * quantity); a cast, such asSUM(CAST(amount AS DECIMAL)); a nested function call, such asSUM(COALESCE(amount, 0)); and a conditional, such asSUM(CASE WHEN region = 'EU' THEN amount ELSE 0 END).Required: Yes
Type: String
Allowed values:
COLUMNS_ONLY | ANY_EXPRESSIONUpdate requires: No interruption
IdentityColumns-
The identity column, such as
user_id, whose distinct values AWS Clean Rooms counts to enforce minimum aggregation thresholds. Currently, you can specify only one column, and its data type must be string, varchar, or char.Required: Yes
Type: Array of String
Minimum:
1Maximum:
1Update requires: No interruption
MinimumIdentityCount-
The minimum number of distinct identities that each query output group must represent. This threshold applies to all output columns in the table. To override this threshold for a specific column, use
outputColumnThresholds.Required: Yes
Type: Integer
Minimum:
2Maximum:
100000Update requires: No interruption
OutputColumnThresholds-
The per-column overrides of
minimumIdentityCount. An output column without an override usesminimumIdentityCount.Required: No
Type: Array of OutputColumnThreshold
Update requires: No interruption
Type-
The type of aggregation that the threshold enforces. Currently, the only supported value is
COUNT_DISTINCT, which counts the distinct values in the identity column.Required: Yes
Type: String
Allowed values:
COUNT_DISTINCTUpdate requires: No interruption