{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-describe-assessment-targets-response-schema.json",
  "title": "DescribeAssessmentTargetsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-assessment-target-api-openapi.yml#/components/schemas/DescribeAssessmentTargetsResponse",
  "type": "object",
  "properties": {
    "assessmentTargets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssessmentTarget"
      },
      "description": "Information about the assessment targets."
    },
    "failedItems": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/FailedItemDetails"
      },
      "description": "Assessment target details that cannot be described. An error code is provided for each failed item."
    }
  },
  "required": [
    "assessmentTargets",
    "failedItems"
  ],
  "$defs": {
    "AssessmentTarget": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The ARN that specifies the Amazon Inspector assessment target."
        },
        "name": {
          "type": "string",
          "description": "The name of the Amazon Inspector assessment target."
        },
        "resourceGroupArn": {
          "type": "string",
          "description": "The ARN that specifies the resource group that is associated with the assessment target."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the assessment target is created."
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which UpdateAssessmentTarget is called."
        }
      },
      "required": [
        "arn",
        "name",
        "createdAt",
        "updatedAt"
      ]
    },
    "FailedItemDetails": {
      "type": "object",
      "properties": {
        "failureCode": {
          "type": "string",
          "enum": [
            "INVALID_ARN",
            "DUPLICATE_ARN",
            "ITEM_DOES_NOT_EXIST",
            "ACCESS_DENIED",
            "LIMIT_EXCEEDED",
            "INTERNAL_ERROR"
          ],
          "description": "The status code of a failed item."
        },
        "retryable": {
          "type": "boolean",
          "description": "Indicates whether you can immediately retry a request for this item for a specified resource."
        }
      },
      "required": [
        "failureCode",
        "retryable"
      ]
    }
  }
}