interface RelativeDatesFilterProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.QuickSight.CfnAnalysis.RelativeDatesFilterProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnAnalysis_RelativeDatesFilterProperty |
![]() | software.amazon.awscdk.services.quicksight.CfnAnalysis.RelativeDatesFilterProperty |
![]() | aws_cdk.aws_quicksight.CfnAnalysis.RelativeDatesFilterProperty |
![]() | aws-cdk-lib » aws_quicksight » CfnAnalysis » RelativeDatesFilterProperty |
A RelativeDatesFilter
filters relative dates values.
Example
// 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 relativeDatesFilterProperty: quicksight.CfnAnalysis.RelativeDatesFilterProperty = {
anchorDateConfiguration: {
anchorOption: 'anchorOption',
parameterName: 'parameterName',
},
column: {
columnName: 'columnName',
dataSetIdentifier: 'dataSetIdentifier',
},
filterId: 'filterId',
nullOption: 'nullOption',
relativeDateType: 'relativeDateType',
timeGranularity: 'timeGranularity',
// the properties below are optional
defaultFilterControlConfiguration: {
controlOptions: {
defaultDateTimePickerOptions: {
commitMode: 'commitMode',
displayOptions: {
dateIconVisibility: 'dateIconVisibility',
dateTimeFormat: 'dateTimeFormat',
helperTextVisibility: 'helperTextVisibility',
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
type: 'type',
},
defaultDropdownOptions: {
commitMode: 'commitMode',
displayOptions: {
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
selectAllOptions: {
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
selectableValues: {
values: ['values'],
},
type: 'type',
},
defaultListOptions: {
displayOptions: {
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
searchOptions: {
visibility: 'visibility',
},
selectAllOptions: {
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
selectableValues: {
values: ['values'],
},
type: 'type',
},
defaultRelativeDateTimeOptions: {
commitMode: 'commitMode',
displayOptions: {
dateTimeFormat: 'dateTimeFormat',
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
},
defaultSliderOptions: {
maximumValue: 123,
minimumValue: 123,
stepSize: 123,
// the properties below are optional
displayOptions: {
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
type: 'type',
},
defaultTextAreaOptions: {
delimiter: 'delimiter',
displayOptions: {
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
placeholderOptions: {
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
},
defaultTextFieldOptions: {
displayOptions: {
infoIconLabelOptions: {
infoIconText: 'infoIconText',
visibility: 'visibility',
},
placeholderOptions: {
visibility: 'visibility',
},
titleOptions: {
customLabel: 'customLabel',
fontConfiguration: {
fontColor: 'fontColor',
fontDecoration: 'fontDecoration',
fontFamily: 'fontFamily',
fontSize: {
absolute: 'absolute',
relative: 'relative',
},
fontStyle: 'fontStyle',
fontWeight: {
name: 'name',
},
},
visibility: 'visibility',
},
},
},
},
title: 'title',
},
excludePeriodConfiguration: {
amount: 123,
granularity: 'granularity',
// the properties below are optional
status: 'status',
},
minimumGranularity: 'minimumGranularity',
parameterName: 'parameterName',
relativeDateValue: 123,
};
Properties
Name | Type | Description |
---|---|---|
anchor | IResolvable | Anchor | The date configuration of the filter. |
column | IResolvable | Column | The column that the filter is applied to. |
filter | string | An identifier that uniquely identifies a filter within a dashboard, analysis, or template. |
null | string | This option determines how null values should be treated when filtering data. |
relative | string | The range date type of the filter. Choose one of the options below:. |
time | string | The level of time precision that is used to aggregate DateTime values. |
default | IResolvable | Default | The default configurations for the associated controls. |
exclude | IResolvable | Exclude | The configuration for the exclude period of the filter. |
minimum | string | The minimum granularity (period granularity) of the relative dates filter. |
parameter | string | The parameter whose value should be used for the filter value. |
relative | number | The date value of the filter. |
anchorDateConfiguration
Type:
IResolvable
|
Anchor
The date configuration of the filter.
column
Type:
IResolvable
|
Column
The column that the filter is applied to.
filterId
Type:
string
An identifier that uniquely identifies a filter within a dashboard, analysis, or template.
nullOption
Type:
string
This option determines how null values should be treated when filtering data.
ALL_VALUES
: Include null values in filtered results.NULLS_ONLY
: Only include null values in filtered results.NON_NULLS_ONLY
: Exclude null values from filtered results.
relativeDateType
Type:
string
The range date type of the filter. Choose one of the options below:.
PREVIOUS
THIS
LAST
NOW
NEXT
timeGranularity
Type:
string
The level of time precision that is used to aggregate DateTime
values.
defaultFilterControlConfiguration?
Type:
IResolvable
|
Default
(optional)
The default configurations for the associated controls.
This applies only for filters that are scoped to multiple sheets.
excludePeriodConfiguration?
Type:
IResolvable
|
Exclude
(optional)
The configuration for the exclude period of the filter.
minimumGranularity?
Type:
string
(optional)
The minimum granularity (period granularity) of the relative dates filter.
parameterName?
Type:
string
(optional)
The parameter whose value should be used for the filter value.
relativeDateValue?
Type:
number
(optional)
The date value of the filter.