{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ecs/json-schema/amazon-ecs-delete-attributes-request-schema.json",
  "title": "DeleteAttributesRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ecs-attribute-api-openapi.yml#/components/schemas/DeleteAttributesRequest",
  "type": "object",
  "properties": {
    "cluster": {
      "type": "string",
      "description": "The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete attributes. If you do not specify a cluster, the default cluster is assumed."
    },
    "attributes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Attribute"
      },
      "description": "The attributes to delete from your resource. You can specify up to 10 attributes for each request. For custom attributes, specify the attribute name and target ID, but don't specify the value. If you specify the target ID using the short form, you must also specify the target type."
    }
  },
  "required": [
    "attributes"
  ],
  "$defs": {
    "Attribute": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the attribute. The name must contain between 1 and 128 characters. The name may contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), forward slashes (/), back slashes (\\), or periods (.)."
        },
        "value": {
          "type": "string",
          "description": "The value of the attribute. The value must contain between 1 and 128 characters. It can contain letters (uppercase and lowercase), numbers, hyphens (-), underscores (_), periods (.), at signs (@), forward slashes (/), back slashes (\\), colons (:), or spaces. The value can't start or end with a space."
        },
        "targetType": {
          "type": "string",
          "enum": [
            "container-instance"
          ],
          "description": "The type of the target to attach the attribute with. This parameter is required if you use the short form ID for a resource instead of the full ARN."
        },
        "targetId": {
          "type": "string",
          "description": "The ID of the target. You can specify the short form ID for a resource or the full Amazon Resource Name (ARN)."
        }
      },
      "required": [
        "name"
      ]
    }
  }
}