Amazon DynamoDB · JSON Structure

Dynamodb Openapi Key Schema Element Structure

Represents a single element of a key schema

Type: object Properties: 2 Required: 2
DatabaseDocument StoreKey-ValueNoSQLServerless

KeySchemaElement is a JSON Structure definition published by Amazon DynamoDB, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

AttributeName KeyType

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-dynamodb/refs/heads/main/json-structure/dynamodb-openapi-key-schema-element-structure.json",
  "name": "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"
  ]
}