interface UnpivotOperationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.QuickSight.CfnDataSet.UnpivotOperationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnDataSet_UnpivotOperationProperty |
Java | software.amazon.awscdk.services.quicksight.CfnDataSet.UnpivotOperationProperty |
Python | aws_cdk.aws_quicksight.CfnDataSet.UnpivotOperationProperty |
TypeScript | aws-cdk-lib » aws_quicksight » CfnDataSet » UnpivotOperationProperty |
A transform operation that converts columns into rows, normalizing the data structure.
Example
// 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 unpivotOperationProperty: quicksight.CfnDataSet.UnpivotOperationProperty = {
alias: 'alias',
columnsToUnpivot: [{
columnName: 'columnName',
newValue: 'newValue',
}],
source: {
transformOperationId: 'transformOperationId',
// the properties below are optional
columnIdMappings: [{
sourceColumnId: 'sourceColumnId',
targetColumnId: 'targetColumnId',
}],
},
unpivotedLabelColumnId: 'unpivotedLabelColumnId',
unpivotedLabelColumnName: 'unpivotedLabelColumnName',
unpivotedValueColumnId: 'unpivotedValueColumnId',
unpivotedValueColumnName: 'unpivotedValueColumnName',
};
Properties
| Name | Type | Description |
|---|---|---|
| alias | string | Alias for this operation. |
| columns | IResolvable | (IResolvable | Column)[] | The list of columns to unpivot from the source data. |
| source | IResolvable | Transform | The source transform operation that provides input data for unpivoting. |
| unpivoted | string | A unique identifier for the new column that will contain the unpivoted column names. |
| unpivoted | string | The name for the new column that will contain the unpivoted column names. |
| unpivoted | string | A unique identifier for the new column that will contain the unpivoted values. |
| unpivoted | string | The name for the new column that will contain the unpivoted values. |
alias
Type:
string
Alias for this operation.
columnsToUnpivot
Type:
IResolvable | (IResolvable | Column)[]
The list of columns to unpivot from the source data.
source
Type:
IResolvable | Transform
The source transform operation that provides input data for unpivoting.
unpivotedLabelColumnId
Type:
string
A unique identifier for the new column that will contain the unpivoted column names.
unpivotedLabelColumnName
Type:
string
The name for the new column that will contain the unpivoted column names.
unpivotedValueColumnId
Type:
string
A unique identifier for the new column that will contain the unpivoted values.
unpivotedValueColumnName
Type:
string
The name for the new column that will contain the unpivoted values.

.NET
Go
Java
Python
TypeScript