PartitionIndex

class aws_cdk.aws_glue_alpha.PartitionIndex(*, key_names, index_name=None)

Bases: object

(experimental) Properties of a Partition Index.

Parameters:
  • key_names (Sequence[str]) – (experimental) The partition key names that comprise the partition index. The names must correspond to a name in the table’s partition keys.

  • index_name (Optional[str]) – (experimental) The name of the partition index. Default: - a name will be generated for you.

Stability:

experimental

ExampleMetadata:

infused

Example:

# my_table: glue.Table

my_table.add_partition_index(
    index_name="my-index",
    key_names=["year"]
)

Attributes

index_name

(experimental) The name of the partition index.

Default:
  • a name will be generated for you.

Stability:

experimental

key_names

(experimental) The partition key names that comprise the partition index.

The names must correspond to a name in the table’s partition keys.

Stability:

experimental