{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-create-thing-type-request-schema.json",
  "title": "CreateThingTypeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-thing-types-api-openapi.yml#/components/schemas/CreateThingTypeRequest",
  "type": "object",
  "properties": {
    "thingTypeName": {
      "type": "string",
      "description": "The name of the thing type."
    },
    "thingTypeProperties": {
      "$ref": "#/$defs/ThingTypeProperties"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata which can be used to manage the thing type."
    }
  },
  "required": [
    "thingTypeName"
  ],
  "$defs": {
    "Mqtt5Configuration": {
      "type": "object",
      "properties": {
        "propagatingAttributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PropagatingAttribute"
          },
          "description": "An object that represents the propagating thing attributes and the connection attributes."
        }
      }
    },
    "PropagatingAttribute": {
      "type": "object",
      "properties": {
        "userPropertyKey": {
          "type": "string",
          "description": "The key of the user property key-value pair."
        },
        "thingAttribute": {
          "type": "string",
          "description": "The user-defined thing attribute that is propagating for MQTT 5 message enrichment."
        },
        "connectionAttribute": {
          "type": "string",
          "description": "The attribute associated with the connection between a device and Amazon Web Services IoT Core."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag's key."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value."
        }
      },
      "required": [
        "Key"
      ]
    },
    "ThingTypeProperties": {
      "type": "object",
      "properties": {
        "thingTypeDescription": {
          "type": "string",
          "description": "The description of the thing type."
        },
        "searchableAttributes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of searchable thing attribute names."
        },
        "mqtt5Configuration": {
          "$ref": "#/$defs/Mqtt5Configuration"
        }
      }
    }
  }
}