{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-tag-resource-request-schema.json",
  "title": "TagResourceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-tags-api-openapi.yml#/components/schemas/TagResourceRequest",
  "type": "object",
  "properties": {
    "resourceName": {
      "type": "string",
      "description": "The name of the resource to which you are adding tags."
    },
    "resourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the resource to which you want to add a tag."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tag key and optional value."
    }
  },
  "required": [
    "resourceName",
    "tags"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        },
        "value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        }
      }
    }
  }
}