{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-attach-thing-principal-request-schema.json",
  "title": "AttachThingPrincipalRequest",
  "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/AttachThingPrincipalRequest",
  "type": "object",
  "properties": {
    "thingName": {
      "type": "string",
      "description": "The name of the thing."
    },
    "principal": {
      "type": "string",
      "description": "The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID."
    },
    "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. 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",
    "principal"
  ]
}