{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-list-access-policies-response-schema.json",
  "title": "ListAccessPoliciesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-access-policies-api-openapi.yml#/components/schemas/ListAccessPoliciesResponse",
  "type": "object",
  "properties": {
    "accessPolicySummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AccessPolicySummary"
      },
      "description": "A list that summarizes each access policy."
    },
    "nextToken": {
      "type": "string",
      "description": "The token for the next set of results, or null if there are no additional results."
    }
  },
  "required": [
    "accessPolicySummaries"
  ],
  "$defs": {
    "AccessPolicySummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the access policy."
        },
        "identity": {
          "$ref": "#/$defs/Identity"
        },
        "resource": {
          "$ref": "#/$defs/Resource"
        },
        "permission": {
          "type": "string",
          "enum": [
            "ADMINISTRATOR",
            "VIEWER"
          ],
          "description": "The permissions for the access policy. Note that a project ADMINISTRATOR is also known as a project owner."
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date the access policy was created, in Unix epoch time."
        },
        "lastUpdateDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date the access policy was last updated, in Unix epoch time."
        }
      },
      "required": [
        "id",
        "identity",
        "resource",
        "permission"
      ]
    },
    "GroupIdentity": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The IAM Identity Center ID of the group."
        }
      },
      "required": [
        "id"
      ]
    },
    "IAMRoleIdentity": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The ARN of the IAM role. For more information, see IAM ARNs in the IAM User Guide."
        }
      },
      "required": [
        "arn"
      ]
    },
    "IAMUserIdentity": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The ARN of the IAM user. For more information, see IAM ARNs in the IAM User Guide. If you delete the IAM user, access policies that contain this identity include an empty arn. You can delete the access policy for the IAM user that no longer exists."
        }
      },
      "required": [
        "arn"
      ]
    },
    "Identity": {
      "type": "object",
      "properties": {
        "user": {
          "$ref": "#/$defs/UserIdentity"
        },
        "group": {
          "$ref": "#/$defs/GroupIdentity"
        },
        "iamUser": {
          "$ref": "#/$defs/IAMUserIdentity"
        },
        "iamRole": {
          "$ref": "#/$defs/IAMRoleIdentity"
        }
      }
    },
    "PortalResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the portal."
        }
      },
      "required": [
        "id"
      ]
    },
    "ProjectResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the project."
        }
      },
      "required": [
        "id"
      ]
    },
    "Resource": {
      "type": "object",
      "properties": {
        "portal": {
          "$ref": "#/$defs/PortalResource"
        },
        "project": {
          "$ref": "#/$defs/ProjectResource"
        }
      }
    },
    "UserIdentity": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The IAM Identity Center ID of the user."
        }
      },
      "required": [
        "id"
      ]
    }
  }
}