Skip to content
v2.277.0

ColumnToUnpivotProperty Struct ​

Specifies a column to be unpivoted, transforming it from a column into rows with associated values.

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 columnToUnpivotProperty: quicksight.CfnDataSet.ColumnToUnpivotProperty = {
  columnName: 'columnName',
  newValue: 'newValue',
};
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

column_to_unpivot_property = quicksight.CfnDataSet.ColumnToUnpivotProperty(
    column_name="columnName",
    new_value="newValue"
)
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.*;

ColumnToUnpivotProperty columnToUnpivotProperty = ColumnToUnpivotProperty.builder()
        .columnName("columnName")
        .newValue("newValue")
        .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 columnToUnpivotProperty = new ColumnToUnpivotProperty {
    ColumnName = "columnName",
    NewValue = "newValue"
};
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"

columnToUnpivotProperty := &ColumnToUnpivotProperty{
	ColumnName: jsii.String("columnName"),
	NewValue: jsii.String("newValue"),
}

Properties ​

columnNameoptionalstringcolumn_nameoptionalstrcolumnNameoptionalStringColumnNameoptionalstringColumnNameoptional*string#
The name of the column to unpivot from the source data.
newValueoptionalstringnew_valueoptionalstrnewValueoptionalStringNewValueoptionalstringNewValueoptional*string#
The value to assign to this column in the unpivoted result, typically the column name or a descriptive label.