{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-alert-target-schema.json",
  "title": "AlertTarget",
  "description": "A structure containing the alert target ARN and the role ARN.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-security-profiles-api-openapi.yml#/components/schemas/AlertTarget",
  "type": "object",
  "required": [
    "alertTargetArn",
    "roleArn"
  ],
  "properties": {
    "alertTargetArn": {
      "allOf": [
        {
          "$ref": "#/$defs/AlertTargetArn"
        },
        {
          "description": "The Amazon Resource Name (ARN) of the notification target to which alerts are sent."
        }
      ]
    },
    "roleArn": {
      "allOf": [
        {
          "$ref": "#/$defs/RoleArn"
        },
        {
          "description": "The ARN of the role that grants permission to send alerts to the notification target."
        }
      ]
    }
  },
  "$defs": {
    "AlertTargetArn": {
      "type": "string"
    },
    "RoleArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    }
  }
}