Skip to content
v2.278.0

ClusteringKeyColumnProperty Struct ​

Defines an individual column within the clustering key.

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

  // the properties below are optional
  orderBy: 'orderBy',
};
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
// 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();
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"
};
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 ​

columnIResolvable | CfnTable.ColumnPropertycolumntyping.Union[IResolvable, ColumnProperty]columnIResolvableColumnIResolvableColumninterface{} required #
The name and data type of this clustering key column.
orderByoptionalstringorder_byoptionalstrorderByoptionalStringOrderByoptionalstringOrderByoptional*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.