Amazon DynamoDB · Schema

KeySchemaElement

Represents a single element of a key schema

DatabaseDocument StoreKey-ValueNoSQLServerless

Properties

Name Type Description
AttributeName string The name of a key attribute
KeyType string The role that this key attribute will assume
View JSON Schema on GitHub

JSON Schema

dynamodb-openapi-key-schema-element-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-dynamodb/refs/heads/main/json-schema/dynamodb-openapi-key-schema-element-schema.json",
  "title": "KeySchemaElement",
  "description": "Represents a single element of a key schema",
  "type": "object",
  "properties": {
    "AttributeName": {
      "type": "string",
      "description": "The name of a key attribute"
    },
    "KeyType": {
      "type": "string",
      "description": "The role that this key attribute will assume",
      "enum": [
        "HASH",
        "RANGE"
      ]
    }
  },
  "required": [
    "AttributeName",
    "KeyType"
  ]
}