{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-elasticache/json-schema/amazon-elasticache-add-tags-to-resource-message-schema.json",
  "title": "AddTagsToResourceMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-elasticache-tag-api-openapi.yml#/components/schemas/AddTagsToResourceMessage",
  "type": "object",
  "properties": {
    "ResourceName": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot. ElastiCache resources are cluster and snapshot. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Service Namespaces."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted."
    }
  },
  "required": [
    "ResourceName",
    "Tags"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for the tag. May not be null."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value. May be null."
        }
      }
    }
  }
}