Amazon DynamoDB · JSON Structure

Dynamodb Openapi Attribute Value Structure

Represents the data for an attribute. Each attribute value is described as a name-value pair with the data type as the name.

Type: object Properties: 10
DatabaseDocument StoreKey-ValueNoSQLServerless

AttributeValue is a JSON Structure definition published by Amazon DynamoDB, describing 10 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

S N B SS NS BS M L NULL BOOL

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-attribute-value-structure.json",
  "name": "AttributeValue",
  "description": "Represents the data for an attribute. Each attribute value is described as a name-value pair with the data type as the name.",
  "type": "object",
  "properties": {
    "S": {
      "type": "string",
      "description": "String attribute value"
    },
    "N": {
      "type": "string",
      "description": "Number attribute value (sent as string)"
    },
    "B": {
      "type": "string",
      "format": "byte",
      "description": "Binary attribute value (Base64-encoded)"
    },
    "SS": {
      "type": "array",
      "description": "String set attribute value",
      "items": {
        "type": "string"
      }
    },
    "NS": {
      "type": "array",
      "description": "Number set attribute value",
      "items": {
        "type": "string"
      }
    },
    "BS": {
      "type": "array",
      "description": "Binary set attribute value",
      "items": {
        "type": "string",
        "format": "byte"
      }
    },
    "M": {
      "type": "object",
      "description": "Map attribute value",
      "additionalProperties": {
        "$ref": "#/components/schemas/AttributeValue"
      }
    },
    "L": {
      "type": "array",
      "description": "List attribute value",
      "items": {
        "$ref": "#/components/schemas/AttributeValue"
      }
    },
    "NULL": {
      "type": "boolean",
      "description": "Null attribute value"
    },
    "BOOL": {
      "type": "boolean",
      "description": "Boolean attribute value"
    }
  }
}