CastColumnTypeOperationProperty Struct
A transform operation that casts a column to a different type.
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 castColumnTypeOperationProperty: quicksight.CfnDataSet.CastColumnTypeOperationProperty = {
columnName: 'columnName',
newColumnType: 'newColumnType',
// the properties below are optional
format: 'format',
subType: 'subType',
};
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
cast_column_type_operation_property = quicksight.CfnDataSet.CastColumnTypeOperationProperty(
column_name="columnName",
new_column_type="newColumnType",
# the properties below are optional
format="format",
sub_type="subType"
)
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.*;
CastColumnTypeOperationProperty castColumnTypeOperationProperty = CastColumnTypeOperationProperty.builder()
.columnName("columnName")
.newColumnType("newColumnType")
// the properties below are optional
.format("format")
.subType("subType")
.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 castColumnTypeOperationProperty = new CastColumnTypeOperationProperty {
ColumnName = "columnName",
NewColumnType = "newColumnType",
// the properties below are optional
Format = "format",
SubType = "subType"
};
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"
castColumnTypeOperationProperty := &CastColumnTypeOperationProperty{
ColumnName: jsii.String("columnName"),
NewColumnType: jsii.String("newColumnType"),
// the properties below are optional
Format: jsii.String("format"),
SubType: jsii.String("subType"),
}
Properties
Column name.
When casting a column from string to datetime type, you can supply a string in a format supported by Quick Sight to denote the source data format.
newColumnTypestringnew_column_typestrnewColumnTypeStringNewColumnTypestringNewColumnType*stringrequired#New column data type.
subTypeoptionalstringsub_typeoptionalstrsubTypeoptionalStringSubTypeoptionalstringSubTypeoptional*string#The sub data type of the new column.
Sub types are only available for decimal columns that are part of a SPICE dataset.