{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-describe-assessment-templates-response-schema.json",
  "title": "DescribeAssessmentTemplatesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-assessment-template-api-openapi.yml#/components/schemas/DescribeAssessmentTemplatesResponse",
  "type": "object",
  "properties": {
    "assessmentTemplates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssessmentTemplate"
      },
      "description": "Information about the assessment templates."
    },
    "failedItems": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/FailedItemDetails"
      },
      "description": "Assessment template details that cannot be described. An error code is provided for each failed item."
    }
  },
  "required": [
    "assessmentTemplates",
    "failedItems"
  ],
  "$defs": {
    "AssessmentTemplate": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The ARN of the assessment template."
        },
        "name": {
          "type": "string",
          "description": "The name of the assessment template."
        },
        "assessmentTargetArn": {
          "type": "string",
          "description": "The ARN of the assessment target that corresponds to this assessment template."
        },
        "durationInSeconds": {
          "type": "integer",
          "description": "The duration in seconds specified for this assessment template. The default value is 3600 seconds (one hour). The maximum value is 86400 seconds (one day)."
        },
        "rulesPackageArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The rules packages that are specified for this assessment template."
        },
        "userAttributesForFindings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Attribute"
          },
          "description": "The user-defined attributes that are assigned to every generated finding from the assessment run that uses this assessment template."
        },
        "lastAssessmentRunArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the most recent assessment run associated with this assessment template. This value exists only when the value of assessmentRunCount is greaterpa than zero."
        },
        "assessmentRunCount": {
          "type": "integer",
          "description": "The number of existing assessment runs associated with this assessment template. This value can be zero or a positive integer."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the assessment template is created."
        }
      },
      "required": [
        "arn",
        "name",
        "assessmentTargetArn",
        "durationInSeconds",
        "rulesPackageArns",
        "userAttributesForFindings",
        "assessmentRunCount",
        "createdAt"
      ]
    },
    "Attribute": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The attribute key."
        },
        "value": {
          "type": "string",
          "description": "The value assigned to the attribute key."
        }
      },
      "required": [
        "key"
      ]
    },
    "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"
      ]
    }
  }
}