FilterRelativeDateTimeControlProperty Struct
A control from a date filter that is used to specify the relative date.
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 filterRelativeDateTimeControlProperty: quicksight.CfnAnalysis.FilterRelativeDateTimeControlProperty = {
filterControlId: 'filterControlId',
sourceFilterId: 'sourceFilterId',
title: 'title',
// the properties below are optional
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',
},
},
};
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
filter_relative_date_time_control_property = quicksight.CfnAnalysis.FilterRelativeDateTimeControlProperty(
filter_control_id="filterControlId",
source_filter_id="sourceFilterId",
title="title",
# the properties below are optional
commit_mode="commitMode",
display_options=quicksight.CfnAnalysis.RelativeDateTimeControlDisplayOptionsProperty(
date_time_format="dateTimeFormat",
info_icon_label_options=quicksight.CfnAnalysis.SheetControlInfoIconLabelOptionsProperty(
info_icon_text="infoIconText",
visibility="visibility"
),
title_options=quicksight.CfnAnalysis.LabelOptionsProperty(
custom_label="customLabel",
font_configuration=quicksight.CfnAnalysis.FontConfigurationProperty(
font_color="fontColor",
font_decoration="fontDecoration",
font_family="fontFamily",
font_size=quicksight.CfnAnalysis.FontSizeProperty(
absolute="absolute",
relative="relative"
),
font_style="fontStyle",
font_weight=quicksight.CfnAnalysis.FontWeightProperty(
name="name"
)
),
visibility="visibility"
)
)
)
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.*;
FilterRelativeDateTimeControlProperty filterRelativeDateTimeControlProperty = FilterRelativeDateTimeControlProperty.builder()
.filterControlId("filterControlId")
.sourceFilterId("sourceFilterId")
.title("title")
// the properties below are optional
.commitMode("commitMode")
.displayOptions(RelativeDateTimeControlDisplayOptionsProperty.builder()
.dateTimeFormat("dateTimeFormat")
.infoIconLabelOptions(SheetControlInfoIconLabelOptionsProperty.builder()
.infoIconText("infoIconText")
.visibility("visibility")
.build())
.titleOptions(LabelOptionsProperty.builder()
.customLabel("customLabel")
.fontConfiguration(FontConfigurationProperty.builder()
.fontColor("fontColor")
.fontDecoration("fontDecoration")
.fontFamily("fontFamily")
.fontSize(FontSizeProperty.builder()
.absolute("absolute")
.relative("relative")
.build())
.fontStyle("fontStyle")
.fontWeight(FontWeightProperty.builder()
.name("name")
.build())
.build())
.visibility("visibility")
.build())
.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 filterRelativeDateTimeControlProperty = new FilterRelativeDateTimeControlProperty {
FilterControlId = "filterControlId",
SourceFilterId = "sourceFilterId",
Title = "title",
// the properties below are optional
CommitMode = "commitMode",
DisplayOptions = new RelativeDateTimeControlDisplayOptionsProperty {
DateTimeFormat = "dateTimeFormat",
InfoIconLabelOptions = new SheetControlInfoIconLabelOptionsProperty {
InfoIconText = "infoIconText",
Visibility = "visibility"
},
TitleOptions = new LabelOptionsProperty {
CustomLabel = "customLabel",
FontConfiguration = new FontConfigurationProperty {
FontColor = "fontColor",
FontDecoration = "fontDecoration",
FontFamily = "fontFamily",
FontSize = new FontSizeProperty {
Absolute = "absolute",
Relative = "relative"
},
FontStyle = "fontStyle",
FontWeight = new FontWeightProperty {
Name = "name"
}
},
Visibility = "visibility"
}
}
};
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"
filterRelativeDateTimeControlProperty := &FilterRelativeDateTimeControlProperty{
FilterControlId: jsii.String("filterControlId"),
SourceFilterId: jsii.String("sourceFilterId"),
Title: jsii.String("title"),
// the properties below are optional
CommitMode: jsii.String("commitMode"),
DisplayOptions: &RelativeDateTimeControlDisplayOptionsProperty{
DateTimeFormat: jsii.String("dateTimeFormat"),
InfoIconLabelOptions: &SheetControlInfoIconLabelOptionsProperty{
InfoIconText: jsii.String("infoIconText"),
Visibility: jsii.String("visibility"),
},
TitleOptions: &LabelOptionsProperty{
CustomLabel: jsii.String("customLabel"),
FontConfiguration: &FontConfigurationProperty{
FontColor: jsii.String("fontColor"),
FontDecoration: jsii.String("fontDecoration"),
FontFamily: jsii.String("fontFamily"),
FontSize: &FontSizeProperty{
Absolute: jsii.String("absolute"),
Relative: jsii.String("relative"),
},
FontStyle: jsii.String("fontStyle"),
FontWeight: &FontWeightProperty{
Name: jsii.String("name"),
},
},
Visibility: jsii.String("visibility"),
},
},
}
Properties
commitModeoptionalstringcommit_modeoptionalstrcommitModeoptionalStringCommitModeoptionalstringCommitModeoptional*string#The visibility configuration of the Apply button on a `FilterRelativeDateTimeControl` .
displayOptionsoptionalIResolvable | CfnAnalysis.RelativeDateTimeControlDisplayOptionsPropertydisplay_optionsoptionaltyping.Union[IResolvable, RelativeDateTimeControlDisplayOptionsProperty]displayOptionsoptionalIResolvableDisplayOptionsoptionalIResolvableDisplayOptionsoptionalinterface{}#The display options of a control.
filterControlIdstringfilter_control_idstrfilterControlIdStringFilterControlIdstringFilterControlId*stringrequired#The ID of the `FilterTextAreaControl` .
sourceFilterIdstringsource_filter_idstrsourceFilterIdStringSourceFilterIdstringSourceFilterId*stringrequired#The source filter ID of the `FilterTextAreaControl` .
The title of the `FilterTextAreaControl` .