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: 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.
- AttributeName - The name of this key attribute.
- KeyType - Determines whether the key attribute is
HASH orRANGE .
Constraints:
Namespace: Amazon.DynamoDBv2.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public List<KeySchemaElement> KeySchema { get; set; }
Property Value
Type: System.Collections.Generic.List<Amazon.DynamoDBv2.Model.KeySchemaElement>
Type: System.Collections.Generic.List<Amazon.DynamoDBv2.Model.KeySchemaElement>
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8