TableSortStyle

class aws_cdk.aws_redshift.TableSortStyle(value)

Bases: enum.Enum

(experimental) The sort style of a table.

Stability

experimental

ExampleMetadata

fixture=cluster infused

Example:

Table(self, "Table",
    table_columns=[Column(name="col1", data_type="varchar(4)", sort_key=True), Column(name="col2", data_type="float", sort_key=True)
    ],
    cluster=cluster,
    database_name="databaseName",
    sort_style=TableSortStyle.COMPOUND
)

Attributes

AUTO

(experimental) Amazon Redshift assigns an optimal sort key based on the table data.

Stability

experimental

COMPOUND

(experimental) Specifies that the data is sorted using a compound key made up of all of the listed columns, in the order they are listed.

Stability

experimental

INTERLEAVED

(experimental) Specifies that the data is sorted using an interleaved sort key.

Stability

experimental