{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-fault-injection-simulator/refs/heads/main/json-schema/amazon-fis-experiment-template-target-schema.json",
  "title": "ExperimentTemplateTarget",
  "description": "Target definition in an experiment template",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string",
      "description": "AWS resource type",
      "example": "aws:ec2:instance"
    },
    "resourceArns": {
      "type": "array",
      "description": "Specific resource ARNs",
      "items": {
        "type": "string"
      }
    },
    "resourceTags": {
      "type": "object",
      "description": "Tags to filter resources",
      "additionalProperties": {
        "type": "string"
      }
    },
    "filters": {
      "type": "array",
      "description": "Resource filters",
      "items": {
        "type": "object"
      }
    },
    "selectionMode": {
      "type": "string",
      "description": "Selection mode",
      "example": "ALL",
      "enum": [
        "ALL",
        "COUNT(n)",
        "PERCENT(n)"
      ]
    }
  }
}