Each KeySchemaElement in the array is composed of:
AttributeName - The name of this key attribute.
KeyType - Determines whether the key attribute is HASH
or RANGE
.
For a primary key that consists of a hash attribute, you must specify exactly one element with a KeyType of HASH
.
For a primary key that consists of hash and range attributes, you must specify exactly two elements, in this order: The first element must have a KeyType of HASH
, and the second element must have a KeyType of RANGE
.
For more information, see Specifying the Primary Key in the Amazon DynamoDB Developer Guide.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
@param keySchema Specifies the attributes that make up the primary key for the table.The attributes in KeySchema must also be defined in the AttributeDefinitions array. For more information, see Data Model in the Amazon DynamoDB Developer Guide.
Each KeySchemaElement in the array is composed of:
AttributeName - The name of this key attribute.
KeyType - Determines whether the key attribute is HASH
or RANGE
.
For a primary key that consists of a hash attribute, you must specify exactly one element with a KeyType of HASH
.
For a primary key that consists of hash and range attributes, you must specify exactly two elements, in this order: The first element must have a KeyType of HASH
, and the second element must have a KeyType of RANGE
.
For more information, see Specifying the Primary Key in the Amazon DynamoDB Developer Guide. @return A reference to this updated object so that method calls can be chained together.
|
|