{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/WindowId"
 ],
 "definitions": {
  "Targets": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 163,
     "minLength": 1,
     "pattern": "^[\\p{L}\\p{Z}\\p{N}_.:/=\\-@]*$|resource-groups:ResourceTypeFilters|resource-groups:Name$",
     "type": "string"
    },
    "Values": {
     "items": {
      "type": "string"
     },
     "maxItems": 50,
     "minItems": 0,
     "type": "array",
     "uniqueItems": false
    }
   },
   "required": [
    "Values",
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Description": {
   "maxLength": 128,
   "minLength": 1,
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "Name": {
   "maxLength": 128,
   "minLength": 3,
   "pattern": "^[a-zA-Z0-9_\\-.]{3,128}$",
   "type": "string"
  },
  "OwnerInformation": {
   "maxLength": 128,
   "minLength": 1,
   "type": "string"
  },
  "ResourceType": {
   "enum": [
    "INSTANCE",
    "RESOURCE_GROUP"
   ],
   "type": "string"
  },
  "Targets": {
   "items": {
    "$ref": "#/definitions/Targets"
   },
   "maxItems": 5,
   "minItems": 0,
   "type": "array",
   "uniqueItems": false
  },
  "WindowId": {
   "maxLength": 20,
   "minLength": 20,
   "pattern": "^mw-[0-9a-f]{17}$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "WindowId",
  "ResourceType",
  "Targets"
 ],
 "typeName": "AWS::SSM::MaintenanceWindowTarget"
}
