PivotConfigurationProperty Struct
Configuration for a pivot operation, specifying which column contains labels and how to pivot them.
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 pivotConfigurationProperty: quicksight.CfnDataSet.PivotConfigurationProperty = {
pivotedLabels: [{
labelName: 'labelName',
newColumnId: 'newColumnId',
newColumnName: 'newColumnName',
}],
// the properties below are optional
labelColumnName: 'labelColumnName',
};
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
pivot_configuration_property = quicksight.CfnDataSet.PivotConfigurationProperty(
pivoted_labels=[quicksight.CfnDataSet.PivotedLabelProperty(
label_name="labelName",
new_column_id="newColumnId",
new_column_name="newColumnName"
)],
# the properties below are optional
label_column_name="labelColumnName"
)
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.*;
PivotConfigurationProperty pivotConfigurationProperty = PivotConfigurationProperty.builder()
.pivotedLabels(List.of(PivotedLabelProperty.builder()
.labelName("labelName")
.newColumnId("newColumnId")
.newColumnName("newColumnName")
.build()))
// the properties below are optional
.labelColumnName("labelColumnName")
.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 pivotConfigurationProperty = new PivotConfigurationProperty {
PivotedLabels = new [] { new PivotedLabelProperty {
LabelName = "labelName",
NewColumnId = "newColumnId",
NewColumnName = "newColumnName"
} },
// the properties below are optional
LabelColumnName = "labelColumnName"
};
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"
pivotConfigurationProperty := &PivotConfigurationProperty{
PivotedLabels: []interface{}{
&PivotedLabelProperty{
LabelName: jsii.String("labelName"),
NewColumnId: jsii.String("newColumnId"),
NewColumnName: jsii.String("newColumnName"),
},
},
// the properties below are optional
LabelColumnName: jsii.String("labelColumnName"),
}
Properties
labelColumnNameoptionalstringlabel_column_nameoptionalstrlabelColumnNameoptionalStringLabelColumnNameoptionalstringLabelColumnNameoptional*string#The name of the column that contains the labels to be pivoted into separate columns.
pivotedLabelsIResolvable | IResolvable | CfnDataSet.PivotedLabelProperty[]pivoted_labelstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PivotedLabelProperty]]]pivotedLabelsIResolvablePivotedLabelsIResolvablePivotedLabelsinterface{}required#The list of specific label values to pivot into separate columns.