{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-tag-schema.json",
  "title": "Tag",
  "description": "A set of key/value pairs that are used to manage the resource.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-authorizer-api-openapi.yml#/components/schemas/Tag",
  "type": "object",
  "required": [
    "Key"
  ],
  "properties": {
    "Key": {
      "allOf": [
        {
          "$ref": "#/$defs/TagKey"
        },
        {
          "description": "The tag's key."
        }
      ]
    },
    "Value": {
      "allOf": [
        {
          "$ref": "#/$defs/TagValue"
        },
        {
          "description": "The tag's value."
        }
      ]
    }
  },
  "$defs": {
    "TagKey": {
      "type": "string",
      "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
      "minLength": 1,
      "maxLength": 128
    },
    "TagValue": {
      "type": "string",
      "minLength": 0,
      "maxLength": 256
    }
  }
}