# AggregationConstraintProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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_cleanrooms as cleanrooms } from 'aws-cdk-lib';
const aggregationConstraintProperty: cleanrooms.CfnConfiguredTable.AggregationConstraintProperty = {
  columnName: 'columnName',
  minimum: 123,
  type: 'type',
};
```

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_cleanrooms as cleanrooms

aggregation_constraint_property = cleanrooms.CfnConfiguredTable.AggregationConstraintProperty(
    column_name="columnName",
    minimum=123,
    type="type"
)
```

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

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

var aggregationConstraintProperty = new AggregationConstraintProperty {
    ColumnName = "columnName",
    Minimum = 123,
    Type = "type"
};
```

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"

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

## Properties

- `columnName`: 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.

- `minimum`: number (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.

- `type`: string (required) — The type of aggregation the constraint allows.

  The only valid value is currently `COUNT_DISTINCT`.
