Skip to content
v2.277.0

CastColumnTypesOperationProperty Struct ​

A transform operation that changes the data types of one or more columns in the dataset.

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 castColumnTypesOperationProperty: quicksight.CfnDataSet.CastColumnTypesOperationProperty = {
  alias: 'alias',
  castColumnTypeOperations: [{
    columnName: 'columnName',
    newColumnType: 'newColumnType',

    // the properties below are optional
    format: 'format',
    subType: 'subType',
  }],
  source: {
    transformOperationId: 'transformOperationId',

    // the properties below are optional
    columnIdMappings: [{
      sourceColumnId: 'sourceColumnId',
      targetColumnId: 'targetColumnId',
    }],
  },
};
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_types_operation_property = quicksight.CfnDataSet.CastColumnTypesOperationProperty(
    alias="alias",
    cast_column_type_operations=[quicksight.CfnDataSet.CastColumnTypeOperationProperty(
        column_name="columnName",
        new_column_type="newColumnType",

        # the properties below are optional
        format="format",
        sub_type="subType"
    )],
    source=quicksight.CfnDataSet.TransformOperationSourceProperty(
        transform_operation_id="transformOperationId",

        # the properties below are optional
        column_id_mappings=[quicksight.CfnDataSet.DataSetColumnIdMappingProperty(
            source_column_id="sourceColumnId",
            target_column_id="targetColumnId"
        )]
    )
)
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.*;

CastColumnTypesOperationProperty castColumnTypesOperationProperty = CastColumnTypesOperationProperty.builder()
        .alias("alias")
        .castColumnTypeOperations(List.of(CastColumnTypeOperationProperty.builder()
                .columnName("columnName")
                .newColumnType("newColumnType")

                // the properties below are optional
                .format("format")
                .subType("subType")
                .build()))
        .source(TransformOperationSourceProperty.builder()
                .transformOperationId("transformOperationId")

                // the properties below are optional
                .columnIdMappings(List.of(DataSetColumnIdMappingProperty.builder()
                        .sourceColumnId("sourceColumnId")
                        .targetColumnId("targetColumnId")
                        .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 castColumnTypesOperationProperty = new CastColumnTypesOperationProperty {
    Alias = "alias",
    CastColumnTypeOperations = new [] { new CastColumnTypeOperationProperty {
        ColumnName = "columnName",
        NewColumnType = "newColumnType",

        // the properties below are optional
        Format = "format",
        SubType = "subType"
    } },
    Source = new TransformOperationSourceProperty {
        TransformOperationId = "transformOperationId",

        // the properties below are optional
        ColumnIdMappings = new [] { new DataSetColumnIdMappingProperty {
            SourceColumnId = "sourceColumnId",
            TargetColumnId = "targetColumnId"
        } }
    }
};
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"

castColumnTypesOperationProperty := &CastColumnTypesOperationProperty{
	Alias: jsii.String("alias"),
	CastColumnTypeOperations: []interface{}{
		&CastColumnTypeOperationProperty{
			ColumnName: jsii.String("columnName"),
			NewColumnType: jsii.String("newColumnType"),

			// the properties below are optional
			Format: jsii.String("format"),
			SubType: jsii.String("subType"),
		},
	},
	Source: &TransformOperationSourceProperty{
		TransformOperationId: jsii.String("transformOperationId"),

		// the properties below are optional
		ColumnIdMappings: []interface{}{
			&DataSetColumnIdMappingProperty{
				SourceColumnId: jsii.String("sourceColumnId"),
				TargetColumnId: jsii.String("targetColumnId"),
			},
		},
	},
}

Properties ​

aliasstringaliasstraliasStringAliasstringAlias*stringrequired#
Alias for this operation.
castColumnTypeOperationsIResolvable | IResolvable | CfnDataSet.CastColumnTypeOperationProperty[]cast_column_type_operationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CastColumnTypeOperationProperty]]]castColumnTypeOperationsIResolvableCastColumnTypeOperationsIResolvableCastColumnTypeOperationsinterface{}required#
The list of column type casting operations to perform.
The source transform operation that provides input data for the type casting.