{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-get-exclusions-preview-response-schema.json",
  "title": "GetExclusionsPreviewResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-operations-api-openapi.yml#/components/schemas/GetExclusionsPreviewResponse",
  "type": "object",
  "properties": {
    "previewStatus": {
      "type": "string",
      "enum": [
        "WORK_IN_PROGRESS",
        "COMPLETED"
      ],
      "description": "Specifies the status of the request to generate an exclusions preview."
    },
    "exclusionPreviews": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExclusionPreview"
      },
      "description": "Information about the exclusions included in the preview."
    },
    "nextToken": {
      "type": "string",
      "description": "When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null."
    }
  },
  "required": [
    "previewStatus"
  ],
  "$defs": {
    "Attribute": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The attribute key."
        },
        "value": {
          "type": "string",
          "description": "The value assigned to the attribute key."
        }
      },
      "required": [
        "key"
      ]
    },
    "ExclusionPreview": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "The name of the exclusion preview."
        },
        "description": {
          "type": "string",
          "description": "The description of the exclusion preview."
        },
        "recommendation": {
          "type": "string",
          "description": "The recommendation for the exclusion preview."
        },
        "scopes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Scope"
          },
          "description": "The AWS resources for which the exclusion preview pertains."
        },
        "attributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Attribute"
          },
          "description": "The system-defined attributes for the exclusion preview."
        }
      },
      "required": [
        "title",
        "description",
        "recommendation",
        "scopes"
      ]
    },
    "Scope": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "INSTANCE_ID",
            "RULES_PACKAGE_ARN"
          ],
          "description": "The type of the scope."
        },
        "value": {
          "type": "string",
          "description": "The resource identifier for the specified scope type."
        }
      }
    }
  }
}