{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-add-things-to-thing-group-params-schema.json",
  "title": "AddThingsToThingGroupParams",
  "description": "Parameters used when defining a mitigation action that move a set of things to a thing group.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-mitigationactions-api-openapi.yml#/components/schemas/AddThingsToThingGroupParams",
  "type": "object",
  "required": [
    "thingGroupNames"
  ],
  "properties": {
    "thingGroupNames": {
      "allOf": [
        {
          "$ref": "#/$defs/ThingGroupNames"
        },
        {
          "description": "The list of groups to which you want to add the things that triggered the mitigation action. You can add a thing to a maximum of 10 groups, but you can't add a thing to more than one group in the same hierarchy."
        }
      ]
    },
    "overrideDynamicGroups": {
      "allOf": [
        {
          "$ref": "#/$defs/NullableBoolean"
        },
        {
          "description": "Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups."
        }
      ]
    }
  },
  "$defs": {
    "NullableBoolean": {
      "type": "boolean"
    },
    "ThingGroupName": {
      "type": "string",
      "pattern": "[a-zA-Z0-9:_-]+",
      "minLength": 1,
      "maxLength": 128
    },
    "ThingGroupNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ThingGroupName"
      },
      "minItems": 1,
      "maxItems": 10
    }
  }
}