PredefinedHierarchyProperty Struct
The option that determines the hierarchy of the fields that are defined during data preparation.
These fields are available to use in any analysis that uses the data source.
| 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 predefinedHierarchyProperty: quicksight.CfnAnalysis.PredefinedHierarchyProperty = {
columns: [{
columnName: 'columnName',
// the properties below are optional
dataSetIdentifier: 'dataSetIdentifier',
topicIdentifier: 'topicIdentifier',
}],
hierarchyId: 'hierarchyId',
// the properties below are optional
drillDownFilters: [{
categoryFilter: {
categoryValues: ['categoryValues'],
column: {
columnName: 'columnName',
// the properties below are optional
dataSetIdentifier: 'dataSetIdentifier',
topicIdentifier: 'topicIdentifier',
},
},
numericEqualityFilter: {
column: {
columnName: 'columnName',
// the properties below are optional
dataSetIdentifier: 'dataSetIdentifier',
topicIdentifier: 'topicIdentifier',
},
value: 123,
},
timeRangeFilter: {
column: {
columnName: 'columnName',
// the properties below are optional
dataSetIdentifier: 'dataSetIdentifier',
topicIdentifier: 'topicIdentifier',
},
rangeMaximum: 'rangeMaximum',
rangeMinimum: 'rangeMinimum',
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
predefined_hierarchy_property = quicksight.CfnAnalysis.PredefinedHierarchyProperty(
columns=[quicksight.CfnAnalysis.ColumnIdentifierProperty(
column_name="columnName",
# the properties below are optional
data_set_identifier="dataSetIdentifier",
topic_identifier="topicIdentifier"
)],
hierarchy_id="hierarchyId",
# the properties below are optional
drill_down_filters=[quicksight.CfnAnalysis.DrillDownFilterProperty(
category_filter=quicksight.CfnAnalysis.CategoryDrillDownFilterProperty(
category_values=["categoryValues"],
column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
column_name="columnName",
# the properties below are optional
data_set_identifier="dataSetIdentifier",
topic_identifier="topicIdentifier"
)
),
numeric_equality_filter=quicksight.CfnAnalysis.NumericEqualityDrillDownFilterProperty(
column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
column_name="columnName",
# the properties below are optional
data_set_identifier="dataSetIdentifier",
topic_identifier="topicIdentifier"
),
value=123
),
time_range_filter=quicksight.CfnAnalysis.TimeRangeDrillDownFilterProperty(
column=quicksight.CfnAnalysis.ColumnIdentifierProperty(
column_name="columnName",
# the properties below are optional
data_set_identifier="dataSetIdentifier",
topic_identifier="topicIdentifier"
),
range_maximum="rangeMaximum",
range_minimum="rangeMinimum",
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.*;
PredefinedHierarchyProperty predefinedHierarchyProperty = PredefinedHierarchyProperty.builder()
.columns(List.of(ColumnIdentifierProperty.builder()
.columnName("columnName")
// the properties below are optional
.dataSetIdentifier("dataSetIdentifier")
.topicIdentifier("topicIdentifier")
.build()))
.hierarchyId("hierarchyId")
// the properties below are optional
.drillDownFilters(List.of(DrillDownFilterProperty.builder()
.categoryFilter(CategoryDrillDownFilterProperty.builder()
.categoryValues(List.of("categoryValues"))
.column(ColumnIdentifierProperty.builder()
.columnName("columnName")
// the properties below are optional
.dataSetIdentifier("dataSetIdentifier")
.topicIdentifier("topicIdentifier")
.build())
.build())
.numericEqualityFilter(NumericEqualityDrillDownFilterProperty.builder()
.column(ColumnIdentifierProperty.builder()
.columnName("columnName")
// the properties below are optional
.dataSetIdentifier("dataSetIdentifier")
.topicIdentifier("topicIdentifier")
.build())
.value(123)
.build())
.timeRangeFilter(TimeRangeDrillDownFilterProperty.builder()
.column(ColumnIdentifierProperty.builder()
.columnName("columnName")
// the properties below are optional
.dataSetIdentifier("dataSetIdentifier")
.topicIdentifier("topicIdentifier")
.build())
.rangeMaximum("rangeMaximum")
.rangeMinimum("rangeMinimum")
.timeGranularity("timeGranularity")
.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 predefinedHierarchyProperty = new PredefinedHierarchyProperty {
Columns = new [] { new ColumnIdentifierProperty {
ColumnName = "columnName",
// the properties below are optional
DataSetIdentifier = "dataSetIdentifier",
TopicIdentifier = "topicIdentifier"
} },
HierarchyId = "hierarchyId",
// the properties below are optional
DrillDownFilters = new [] { new DrillDownFilterProperty {
CategoryFilter = new CategoryDrillDownFilterProperty {
CategoryValues = new [] { "categoryValues" },
Column = new ColumnIdentifierProperty {
ColumnName = "columnName",
// the properties below are optional
DataSetIdentifier = "dataSetIdentifier",
TopicIdentifier = "topicIdentifier"
}
},
NumericEqualityFilter = new NumericEqualityDrillDownFilterProperty {
Column = new ColumnIdentifierProperty {
ColumnName = "columnName",
// the properties below are optional
DataSetIdentifier = "dataSetIdentifier",
TopicIdentifier = "topicIdentifier"
},
Value = 123
},
TimeRangeFilter = new TimeRangeDrillDownFilterProperty {
Column = new ColumnIdentifierProperty {
ColumnName = "columnName",
// the properties below are optional
DataSetIdentifier = "dataSetIdentifier",
TopicIdentifier = "topicIdentifier"
},
RangeMaximum = "rangeMaximum",
RangeMinimum = "rangeMinimum",
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"
predefinedHierarchyProperty := &PredefinedHierarchyProperty{
Columns: []interface{}{
&ColumnIdentifierProperty{
ColumnName: jsii.String("columnName"),
// the properties below are optional
DataSetIdentifier: jsii.String("dataSetIdentifier"),
TopicIdentifier: jsii.String("topicIdentifier"),
},
},
HierarchyId: jsii.String("hierarchyId"),
// the properties below are optional
DrillDownFilters: []interface{}{
&DrillDownFilterProperty{
CategoryFilter: &CategoryDrillDownFilterProperty{
CategoryValues: []*string{
jsii.String("categoryValues"),
},
Column: &ColumnIdentifierProperty{
ColumnName: jsii.String("columnName"),
// the properties below are optional
DataSetIdentifier: jsii.String("dataSetIdentifier"),
TopicIdentifier: jsii.String("topicIdentifier"),
},
},
NumericEqualityFilter: &NumericEqualityDrillDownFilterProperty{
Column: &ColumnIdentifierProperty{
ColumnName: jsii.String("columnName"),
// the properties below are optional
DataSetIdentifier: jsii.String("dataSetIdentifier"),
TopicIdentifier: jsii.String("topicIdentifier"),
},
Value: jsii.Number(123),
},
TimeRangeFilter: &TimeRangeDrillDownFilterProperty{
Column: &ColumnIdentifierProperty{
ColumnName: jsii.String("columnName"),
// the properties below are optional
DataSetIdentifier: jsii.String("dataSetIdentifier"),
TopicIdentifier: jsii.String("topicIdentifier"),
},
RangeMaximum: jsii.String("rangeMaximum"),
RangeMinimum: jsii.String("rangeMinimum"),
TimeGranularity: jsii.String("timeGranularity"),
},
},
},
}
Properties
columnsIResolvable | IResolvable | CfnAnalysis.columnstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ColumnIdentifierProperty]]]columnsIResolvableColumnsIResolvableColumnsinterface{} required #The list of columns that define the predefined hierarchy.
drillDownFiltersoptionalIResolvable | IResolvable | CfnAnalysis.drill_down_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DrillDownFilterProperty]]]drillDownFiltersoptionalIResolvableDrillDownFiltersoptionalIResolvableDrillDownFiltersoptionalinterface{} #The option that determines the drill down filters for the predefined hierarchy.
The hierarchy ID of the predefined hierarchy.