# ColumnProperty

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` .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `columnName`: string (required) — The name of the column.

  For more information, see [Identifiers](https://docs.aws.amazon.com/keyspaces/latest/devguide/cql.elements.html#cql.elements.identifier) in the *Amazon Keyspaces Developer Guide* .

- `columnType`: string (required) — The data type of the column.

  For more information, see [Data types](https://docs.aws.amazon.com/keyspaces/latest/devguide/cql.elements.html#cql.data-types) in the *Amazon Keyspaces Developer Guide* .
