{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-access-analyzer/json-schema/amazon-iam-access-analyzer-list-access-previews-response-schema.json",
  "title": "ListAccessPreviewsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-access-analyzer-access-preview-api-openapi.yml#/components/schemas/ListAccessPreviewsResponse",
  "type": "object",
  "properties": {
    "accessPreviews": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AccessPreviewSummary"
      },
      "description": "A list of access previews retrieved for the analyzer."
    },
    "nextToken": {
      "type": "string",
      "description": "A token used for pagination of results returned."
    }
  },
  "required": [
    "accessPreviews"
  ],
  "$defs": {
    "AccessPreviewStatusReason": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The reason code for the current status of the access preview."
        }
      },
      "required": [
        "code"
      ]
    },
    "AccessPreviewSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID for the access preview."
        },
        "analyzerArn": {
          "type": "string",
          "description": "The ARN of the analyzer used to generate the access preview."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which the access preview was created."
        },
        "status": {
          "type": "string",
          "description": "The status of the access preview. Creating - The access preview creation is in progress. Completed - The access preview is complete and previews the findings for external access to the resource. Failed - The access preview creation has failed."
        },
        "statusReason": {
          "$ref": "#/$defs/AccessPreviewStatusReason"
        }
      },
      "required": [
        "id",
        "analyzerArn",
        "createdAt",
        "status"
      ]
    }
  }
}