{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-list-principal-things-v2-response-schema.json",
  "title": "ListPrincipalThingsV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-principals-api-openapi.yml#/components/schemas/ListPrincipalThingsV2Response",
  "type": "object",
  "properties": {
    "principalThingObjects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PrincipalThingObject"
      },
      "description": "A list of thingPrincipalObject that represents the principal and the type of relation it has with the thing."
    },
    "nextToken": {
      "type": "string",
      "description": "The token to use to get the next set of results, or null if there are no additional results."
    }
  },
  "$defs": {
    "PrincipalThingObject": {
      "type": "object",
      "properties": {
        "thingName": {
          "type": "string",
          "description": "The name of the thing."
        },
        "thingPrincipalType": {
          "type": "string",
          "enum": [
            "EXCLUSIVE_THING",
            "NON_EXCLUSIVE_THING"
          ],
          "description": "The type of the relation you want to specify when you attach a principal to a thing. The value defaults to NON_EXCLUSIVE_THING. EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal. NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal."
        }
      },
      "required": [
        "thingName"
      ]
    }
  }
}