Skip to content
v2.278.0

AggregationConstraintProperty Struct ​

Constraint on query output removing output rows that do not meet a minimum number of distinct values of a specified column.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cleanrooms as cleanrooms } from 'aws-cdk-lib';
const aggregationConstraintProperty: cleanrooms.CfnConfiguredTable.AggregationConstraintProperty = {
  columnName: 'columnName',
  minimum: 123,
  type: 'type',
};
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_cleanrooms as cleanrooms

aggregation_constraint_property = cleanrooms.CfnConfiguredTable.AggregationConstraintProperty(
    column_name="columnName",
    minimum=123,
    type="type"
)
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.cleanrooms.*;

AggregationConstraintProperty aggregationConstraintProperty = AggregationConstraintProperty.builder()
        .columnName("columnName")
        .minimum(123)
        .type("type")
        .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.CleanRooms;

var aggregationConstraintProperty = new AggregationConstraintProperty {
    ColumnName = "columnName",
    Minimum = 123,
    Type = "type"
};
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"

aggregationConstraintProperty := &AggregationConstraintProperty{
	ColumnName: jsii.String("columnName"),
	Minimum: jsii.Number(123),
	Type: jsii.String("type"),
}

Properties ​

columnNamestringcolumn_namestrcolumnNameStringColumnNamestringColumnName*string required #
Column in aggregation constraint for which there must be a minimum number of distinct values in an output row for it to be in the query output.
minimumnumberminimumint | floatminimumNumberMinimumdoubleMinimum*float64 required #
The minimum number of distinct values that an output row must be an aggregation of.

Minimum threshold of distinct values for a specified column that must exist in an output row for it to be in the query output.

typestringtypestrtypeStringTypestringType*string required #
The type of aggregation the constraint allows.

The only valid value is currently COUNT_DISTINCT.