View definition


Defined in


One or more local secondary indexes (the maximum is five) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

Each local secondary index in the array includes the following:

IndexName - The name of the local secondary index. Must be unique only

for this table.

KeySchema - Specifies the key schema for the local secondary index.

The key schema must begin with the same partition key as the table.

Projection - Specifies attributes that are copied (projected) from the

table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:

ProjectionType - One of the following:

KEYS_ONLY - Only the index and primary keys are projected into the index.

INCLUDE - Only the specified table attributes are projected into the

index. The list of projected attributes are in NonKeyAttributes.

ALL - All of the table attributes are projected into the index.

  NonKeyAttributes - A list of one or more non-key attribute names that

are projected into the secondary index. The total count of attributes provided in NonKeyAttributes, summed across all of the secondary indexes, must not exceed 20. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.

LocalSecondaryIndexes is referenced in 5 repositories