# ClusteringKeyColumnProperty

Defines an individual column within the clustering key.

- 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 clusteringKeyColumnProperty: cassandra.CfnTable.ClusteringKeyColumnProperty = {
  column: {
    columnName: 'columnName',
    columnType: 'columnType',
  },

  // the properties below are optional
  orderBy: 'orderBy',
};
```

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

clustering_key_column_property = cassandra.CfnTable.ClusteringKeyColumnProperty(
    column=cassandra.CfnTable.ColumnProperty(
        column_name="columnName",
        column_type="columnType"
    ),

    # the properties below are optional
    order_by="orderBy"
)
```

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.*;

ClusteringKeyColumnProperty clusteringKeyColumnProperty = ClusteringKeyColumnProperty.builder()
        .column(ColumnProperty.builder()
                .columnName("columnName")
                .columnType("columnType")
                .build())

        // the properties below are optional
        .orderBy("orderBy")
        .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 clusteringKeyColumnProperty = new ClusteringKeyColumnProperty {
    Column = new ColumnProperty {
        ColumnName = "columnName",
        ColumnType = "columnType"
    },

    // the properties below are optional
    OrderBy = "orderBy"
};
```

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"

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

	// the properties below are optional
	OrderBy: jsii.String("orderBy"),
}
```

## Properties

- `column`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.ColumnProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cassandra.CfnTable.ColumnProperty.html) (required) — The name and data type of this clustering key column.

- `orderBy`: string = "ASC" — The order in which this column's data is stored:.

  - `ASC` (default) - The column's data is stored in ascending order.
  - `DESC` - The column's data is stored in descending order.
