Skip to content
v2.278.0

TopicNumericEqualityFilterProperty Struct ​

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.

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 topicNumericEqualityFilterProperty: quicksight.CfnTopic.TopicNumericEqualityFilterProperty = {
  aggregation: 'aggregation',
  constant: {
    constantType: 'constantType',
    singularConstant: 'singularConstant',
  },
};
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
// 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();
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"
    }
};
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 ​

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

constantoptionalIResolvable | CfnTopic.TopicSingularFilterConstantPropertyconstantoptionaltyping.Union[IResolvable, TopicSingularFilterConstantProperty]constantoptionalIResolvableConstantoptionalIResolvableConstantoptionalinterface{} #
The constant used in a numeric equality filter.