Skip to content
v2.277.0

TopicRelativeDateFilterProperty Struct ​

A structure that represents a relative date filter.

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 topicRelativeDateFilterProperty: quicksight.CfnTopic.TopicRelativeDateFilterProperty = {
  constant: {
    constantType: 'constantType',
    singularConstant: 'singularConstant',
  },
  relativeDateFilterFunction: 'relativeDateFilterFunction',
  timeGranularity: 'timeGranularity',
};
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_relative_date_filter_property = quicksight.CfnTopic.TopicRelativeDateFilterProperty(
    constant=quicksight.CfnTopic.TopicSingularFilterConstantProperty(
        constant_type="constantType",
        singular_constant="singularConstant"
    ),
    relative_date_filter_function="relativeDateFilterFunction",
    time_granularity="timeGranularity"
)
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.*;

TopicRelativeDateFilterProperty topicRelativeDateFilterProperty = TopicRelativeDateFilterProperty.builder()
        .constant(TopicSingularFilterConstantProperty.builder()
                .constantType("constantType")
                .singularConstant("singularConstant")
                .build())
        .relativeDateFilterFunction("relativeDateFilterFunction")
        .timeGranularity("timeGranularity")
        .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 topicRelativeDateFilterProperty = new TopicRelativeDateFilterProperty {
    Constant = new TopicSingularFilterConstantProperty {
        ConstantType = "constantType",
        SingularConstant = "singularConstant"
    },
    RelativeDateFilterFunction = "relativeDateFilterFunction",
    TimeGranularity = "timeGranularity"
};
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"

topicRelativeDateFilterProperty := &TopicRelativeDateFilterProperty{
	Constant: &TopicSingularFilterConstantProperty{
		ConstantType: jsii.String("constantType"),
		SingularConstant: jsii.String("singularConstant"),
	},
	RelativeDateFilterFunction: jsii.String("relativeDateFilterFunction"),
	TimeGranularity: jsii.String("timeGranularity"),
}

Properties ​

constantoptionalIResolvable | CfnTopic.TopicSingularFilterConstantPropertyconstantoptionaltyping.Union[IResolvable, TopicSingularFilterConstantProperty]constantoptionalIResolvableConstantoptionalIResolvableConstantoptionalinterface{} #
The constant used in a relative date filter.
relativeDateFilterFunctionoptionalstringrelative_date_filter_functionoptionalstrrelativeDateFilterFunctionoptionalStringRelativeDateFilterFunctionoptionalstringRelativeDateFilterFunctionoptional*string #
The function to be used in a relative date filter to determine the range of dates to include in the results.

Valid values for this structure are BEFORE , AFTER , and BETWEEN .

timeGranularityoptionalstringtime_granularityoptionalstrtimeGranularityoptionalStringTimeGranularityoptionalstringTimeGranularityoptional*string #
The level of time precision that is used to aggregate `DateTime` values.