TableLocalSecondaryIndex constructor

const TableLocalSecondaryIndex({
  1. required Input<String> name,
  2. Input<List<String>?>? nonKeyAttributes,
  3. required Input<String> projectionType,
  4. required Input<String> rangeKey,
})

Creates a new TableLocalSecondaryIndex. name Name of the index nonKeyAttributes Only required with INCLUDE as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table. projectionType One of ALL, INCLUDE or KEYS_ONLY where ALL projects every attribute into the index, KEYS_ONLY projects into the index only the table and index hashKey and sortKey attributes , INCLUDE projects into the index all of the attributes that are defined in nonKeyAttributes in addition to the attributes that thatKEYS_ONLY project. rangeKey Name of the range key.

Implementation

const TableLocalSecondaryIndex({
  required this.name,
  this.nonKeyAttributes,
  required this.projectionType,
  required this.rangeKey,
});