Skip to content
v2.278.0

ColumnProperty Struct ​

The name and data type of an individual column in a table.

In addition to the data type, you can also use the following two keywords:

  • STATIC if the table has a clustering column. Static columns store values that are shared by all rows in the same partition.
  • FROZEN for collection data types. In frozen collections the values of the collection are serialized into a single immutable value, and Amazon Keyspaces treats them like a BLOB .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cassandra as cassandra } from 'aws-cdk-lib';
const columnProperty: cassandra.CfnTable.ColumnProperty = {
  columnName: 'columnName',
  columnType: 'columnType',
};
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_cassandra as cassandra

column_property = cassandra.CfnTable.ColumnProperty(
    column_name="columnName",
    column_type="columnType"
)
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.cassandra.*;

ColumnProperty columnProperty = ColumnProperty.builder()
        .columnName("columnName")
        .columnType("columnType")
        .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.Cassandra;

var columnProperty = new ColumnProperty {
    ColumnName = "columnName",
    ColumnType = "columnType"
};
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"

columnProperty := &ColumnProperty{
	ColumnName: jsii.String("columnName"),
	ColumnType: jsii.String("columnType"),
}

Properties ​

columnNamestringcolumn_namestrcolumnNameStringColumnNamestringColumnName*string required #
The name of the column.

For more information, see Identifiers in the Amazon Keyspaces Developer Guide .

columnTypestringcolumn_typestrcolumnTypeStringColumnTypestringColumnType*string required #
The data type of the column.

For more information, see Data types in the Amazon Keyspaces Developer Guide .