{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-add-tags-request-schema.json",
  "title": "AddTagsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-tag-api-openapi.yml#/components/schemas/AddTagsRequest",
  "type": "object",
  "properties": {
    "ResourceId": {
      "type": "string",
      "description": "Specifies the ARN of the trail, event data store, dashboard, or channel to which one or more tags will be added. The format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail The format of an event data store ARN is: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE The format of a dashboard ARN is: arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash The format of a channel ARN is: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890"
    },
    "TagsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Contains a list of tags, up to a limit of 50"
    }
  },
  "required": [
    "ResourceId",
    "TagsList"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies."
        },
        "Value": {
          "type": "string",
          "description": "The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}