# TopicNumericEqualityFilterProperty

A filter that filters topics based on the value of a numeric field.

The filter includes only topics whose numeric field value matches the specified value.

- 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_quicksight as quicksight } from 'aws-cdk-lib';
const topicNumericEqualityFilterProperty: quicksight.CfnTopic.TopicNumericEqualityFilterProperty = {
  aggregation: 'aggregation',
  constant: {
    constantType: 'constantType',
    singularConstant: 'singularConstant',
  },
};
```

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

topic_numeric_equality_filter_property = quicksight.CfnTopic.TopicNumericEqualityFilterProperty(
    aggregation="aggregation",
    constant=quicksight.CfnTopic.TopicSingularFilterConstantProperty(
        constant_type="constantType",
        singular_constant="singularConstant"
    )
)
```

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

TopicNumericEqualityFilterProperty topicNumericEqualityFilterProperty = TopicNumericEqualityFilterProperty.builder()
        .aggregation("aggregation")
        .constant(TopicSingularFilterConstantProperty.builder()
                .constantType("constantType")
                .singularConstant("singularConstant")
                .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 topicNumericEqualityFilterProperty = new TopicNumericEqualityFilterProperty {
    Aggregation = "aggregation",
    Constant = new TopicSingularFilterConstantProperty {
        ConstantType = "constantType",
        SingularConstant = "singularConstant"
    }
};
```

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"

topicNumericEqualityFilterProperty := &TopicNumericEqualityFilterProperty{
	Aggregation: jsii.String("aggregation"),
	Constant: &TopicSingularFilterConstantProperty{
		ConstantType: jsii.String("constantType"),
		SingularConstant: jsii.String("singularConstant"),
	},
}
```

## Properties

- `aggregation`: string — An aggregation function that specifies how to calculate the value of a numeric field for a topic.

  Valid values for this structure are `NO_AGGREGATION` , `SUM` , `AVERAGE` , `COUNT` , `DISTINCT_COUNT` , `MAX` , `MEDIAN` , `MIN` , `STDEV` , `STDEVP` , `VAR` , and `VARP` .

- `constant`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTopic.TopicSingularFilterConstantProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTopic.TopicSingularFilterConstantProperty.html) — The constant used in a numeric equality filter.
