FieldBasedTooltipProperty Struct
The setup for the detailed tooltip.
| Source | |
|---|---|
| Type last changed |
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 fieldBasedTooltipProperty: quicksight.CfnAnalysis.FieldBasedTooltipProperty = {
aggregationVisibility: 'aggregationVisibility',
tooltipFields: [{
columnTooltipItem: {
column: {
columnName: 'columnName',
// the properties below are optional
dataSetIdentifier: 'dataSetIdentifier',
topicIdentifier: 'topicIdentifier',
},
// the properties below are optional
aggregation: {
attributeAggregationFunction: {
simpleAttributeAggregation: 'simpleAttributeAggregation',
valueForMultipleValues: 'valueForMultipleValues',
},
categoricalAggregationFunction: 'categoricalAggregationFunction',
dateAggregationFunction: 'dateAggregationFunction',
numericalAggregationFunction: {
percentileAggregation: {
percentileValue: 123,
},
simpleNumericalAggregation: 'simpleNumericalAggregation',
},
},
label: 'label',
tooltipTarget: 'tooltipTarget',
visibility: 'visibility',
},
fieldTooltipItem: {
fieldId: 'fieldId',
// the properties below are optional
label: 'label',
tooltipTarget: 'tooltipTarget',
visibility: 'visibility',
},
}],
tooltipTitleType: 'tooltipTitleType',
};
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
field_based_tooltip_property = quicksight.CfnAnalysis.FieldBasedTooltipProperty(
aggregation_visibility="aggregationVisibility",
tooltip_fields=[quicksight.CfnAnalysis.TooltipItemProperty(
column_tooltip_item=quicksight.CfnAnalysis.ColumnTooltipItemProperty(
column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
column_name="columnName",
# the properties below are optional
data_set_identifier="dataSetIdentifier",
topic_identifier="topicIdentifier"
),
# the properties below are optional
aggregation=quicksight.CfnAnalysis.AggregationFunctionProperty(
attribute_aggregation_function=quicksight.CfnAnalysis.AttributeAggregationFunctionProperty(
simple_attribute_aggregation="simpleAttributeAggregation",
value_for_multiple_values="valueForMultipleValues"
),
categorical_aggregation_function="categoricalAggregationFunction",
date_aggregation_function="dateAggregationFunction",
numerical_aggregation_function=quicksight.CfnAnalysis.NumericalAggregationFunctionProperty(
percentile_aggregation=quicksight.CfnAnalysis.PercentileAggregationProperty(
percentile_value=123
),
simple_numerical_aggregation="simpleNumericalAggregation"
)
),
label="label",
tooltip_target="tooltipTarget",
visibility="visibility"
),
field_tooltip_item=quicksight.CfnAnalysis.FieldTooltipItemProperty(
field_id="fieldId",
# the properties below are optional
label="label",
tooltip_target="tooltipTarget",
visibility="visibility"
)
)],
tooltip_title_type="tooltipTitleType"
)
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.*;
FieldBasedTooltipProperty fieldBasedTooltipProperty = FieldBasedTooltipProperty.builder()
.aggregationVisibility("aggregationVisibility")
.tooltipFields(List.of(TooltipItemProperty.builder()
.columnTooltipItem(ColumnTooltipItemProperty.builder()
.column(ColumnIdentifierProperty.builder()
.columnName("columnName")
// the properties below are optional
.dataSetIdentifier("dataSetIdentifier")
.topicIdentifier("topicIdentifier")
.build())
// the properties below are optional
.aggregation(AggregationFunctionProperty.builder()
.attributeAggregationFunction(AttributeAggregationFunctionProperty.builder()
.simpleAttributeAggregation("simpleAttributeAggregation")
.valueForMultipleValues("valueForMultipleValues")
.build())
.categoricalAggregationFunction("categoricalAggregationFunction")
.dateAggregationFunction("dateAggregationFunction")
.numericalAggregationFunction(NumericalAggregationFunctionProperty.builder()
.percentileAggregation(PercentileAggregationProperty.builder()
.percentileValue(123)
.build())
.simpleNumericalAggregation("simpleNumericalAggregation")
.build())
.build())
.label("label")
.tooltipTarget("tooltipTarget")
.visibility("visibility")
.build())
.fieldTooltipItem(FieldTooltipItemProperty.builder()
.fieldId("fieldId")
// the properties below are optional
.label("label")
.tooltipTarget("tooltipTarget")
.visibility("visibility")
.build())
.build()))
.tooltipTitleType("tooltipTitleType")
.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 fieldBasedTooltipProperty = new FieldBasedTooltipProperty {
AggregationVisibility = "aggregationVisibility",
TooltipFields = new [] { new TooltipItemProperty {
ColumnTooltipItem = new ColumnTooltipItemProperty {
Column = new ColumnIdentifierProperty {
ColumnName = "columnName",
// the properties below are optional
DataSetIdentifier = "dataSetIdentifier",
TopicIdentifier = "topicIdentifier"
},
// the properties below are optional
Aggregation = new AggregationFunctionProperty {
AttributeAggregationFunction = new AttributeAggregationFunctionProperty {
SimpleAttributeAggregation = "simpleAttributeAggregation",
ValueForMultipleValues = "valueForMultipleValues"
},
CategoricalAggregationFunction = "categoricalAggregationFunction",
DateAggregationFunction = "dateAggregationFunction",
NumericalAggregationFunction = new NumericalAggregationFunctionProperty {
PercentileAggregation = new PercentileAggregationProperty {
PercentileValue = 123
},
SimpleNumericalAggregation = "simpleNumericalAggregation"
}
},
Label = "label",
TooltipTarget = "tooltipTarget",
Visibility = "visibility"
},
FieldTooltipItem = new FieldTooltipItemProperty {
FieldId = "fieldId",
// the properties below are optional
Label = "label",
TooltipTarget = "tooltipTarget",
Visibility = "visibility"
}
} },
TooltipTitleType = "tooltipTitleType"
};
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"
fieldBasedTooltipProperty := &FieldBasedTooltipProperty{
AggregationVisibility: jsii.String("aggregationVisibility"),
TooltipFields: []interface{}{
&TooltipItemProperty{
ColumnTooltipItem: &ColumnTooltipItemProperty{
Column: &ColumnIdentifierProperty{
ColumnName: jsii.String("columnName"),
// the properties below are optional
DataSetIdentifier: jsii.String("dataSetIdentifier"),
TopicIdentifier: jsii.String("topicIdentifier"),
},
// the properties below are optional
Aggregation: &AggregationFunctionProperty{
AttributeAggregationFunction: &AttributeAggregationFunctionProperty{
SimpleAttributeAggregation: jsii.String("simpleAttributeAggregation"),
ValueForMultipleValues: jsii.String("valueForMultipleValues"),
},
CategoricalAggregationFunction: jsii.String("categoricalAggregationFunction"),
DateAggregationFunction: jsii.String("dateAggregationFunction"),
NumericalAggregationFunction: &NumericalAggregationFunctionProperty{
PercentileAggregation: &PercentileAggregationProperty{
PercentileValue: jsii.Number(123),
},
SimpleNumericalAggregation: jsii.String("simpleNumericalAggregation"),
},
},
Label: jsii.String("label"),
TooltipTarget: jsii.String("tooltipTarget"),
Visibility: jsii.String("visibility"),
},
FieldTooltipItem: &FieldTooltipItemProperty{
FieldId: jsii.String("fieldId"),
// the properties below are optional
Label: jsii.String("label"),
TooltipTarget: jsii.String("tooltipTarget"),
Visibility: jsii.String("visibility"),
},
},
},
TooltipTitleType: jsii.String("tooltipTitleType"),
}
Properties
aggregationVisibilityoptionalstringaggregation_visibilityoptionalstraggregationVisibilityoptionalStringAggregationVisibilityoptionalstringAggregationVisibilityoptional*string #The visibility of `Show aggregations` .
tooltipFieldsoptionalIResolvable | IResolvable | CfnAnalysis.TooltipItemProperty[]tooltip_fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TooltipItemProperty]]]tooltipFieldsoptionalIResolvableTooltipFieldsoptionalIResolvableTooltipFieldsoptionalinterface{} #The fields configuration in the tooltip.
tooltipTitleTypeoptionalstringtooltip_title_typeoptionalstrtooltipTitleTypeoptionalStringTooltipTitleTypeoptionalstringTooltipTitleTypeoptional*string #The type for the >tooltip title. Choose one of the following options:.
NONE: Doesn't use the primary value as the title.PRIMARY_VALUE: Uses primary value as the title.