{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-create-dynamic-thing-group-request-schema.json",
  "title": "CreateDynamicThingGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-dynamic-thing-groups-api-openapi.yml#/components/schemas/CreateDynamicThingGroupRequest",
  "type": "object",
  "properties": {
    "thingGroupName": {
      "type": "string",
      "description": "The dynamic thing group name to create."
    },
    "thingGroupProperties": {
      "$ref": "#/$defs/ThingGroupProperties"
    },
    "indexName": {
      "type": "string",
      "description": "The dynamic thing group index name. Currently one index is supported: AWS_Things."
    },
    "queryString": {
      "type": "string",
      "description": "The dynamic thing group search query string. See Query Syntax for information about query string syntax."
    },
    "queryVersion": {
      "type": "string",
      "description": "The dynamic thing group query version. Currently one query version is supported: \"2017-09-30\". If not specified, the query version defaults to this value."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata which can be used to manage the dynamic thing group."
    }
  },
  "required": [
    "thingGroupName",
    "queryString"
  ],
  "$defs": {
    "AttributePayload": {
      "type": "object",
      "properties": {
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A JSON string containing up to three key-value pair in JSON format. For example: {\\\"attributes\\\":{\\\"string1\\\":\\\"string2\\\"}}"
        },
        "merge": {
          "type": "boolean",
          "description": "Specifies whether the list of attributes provided in the AttributePayload is merged with the attributes stored in the registry, instead of overwriting them. To remove an attribute, call UpdateThing with an empty attribute value. The merge attribute is only valid when calling UpdateThing or UpdateThingGroup."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag's key."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value."
        }
      },
      "required": [
        "Key"
      ]
    },
    "ThingGroupProperties": {
      "type": "object",
      "properties": {
        "thingGroupDescription": {
          "type": "string",
          "description": "The thing group description."
        },
        "attributePayload": {
          "$ref": "#/$defs/AttributePayload"
        }
      }
    }
  }
}