{
  "$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-request-schema.json",
  "title": "ListPrincipalThingsV2Request",
  "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/ListPrincipalThingsV2Request",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in this operation."
    },
    "principal": {
      "type": "string",
      "description": "The principal. A principal can be an X.509 certificate or an Amazon Cognito ID."
    },
    "thingPrincipalType": {
      "type": "string",
      "enum": [
        "EXCLUSIVE_THING",
        "NON_EXCLUSIVE_THING"
      ],
      "description": "The type of the relation you want to filter in the response. If no value is provided in this field, the response will list all things, including both the EXCLUSIVE_THING and NON_EXCLUSIVE_THING attachment types. 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": [
    "principal"
  ]
}