{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Device/DeviceName"
 ],
 "definitions": {
  "Device": {
   "additionalProperties": false,
   "properties": {
    "Description": {
     "maxLength": 40,
     "minLength": 1,
     "pattern": "[\\S\\s]+",
     "type": "string"
    },
    "DeviceName": {
     "maxLength": 63,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$",
     "type": "string"
    },
    "IotThingName": {
     "maxLength": 128,
     "pattern": "[a-zA-Z0-9:_-]+",
     "type": "string"
    }
   },
   "required": [
    "DeviceName"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^((?!aws:)[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Device/DeviceName"
 ],
 "properties": {
  "Device": {
   "$ref": "#/definitions/Device"
  },
  "DeviceFleetName": {
   "maxLength": 63,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$",
   "type": "string"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array"
  }
 },
 "required": [
  "DeviceFleetName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sagemaker-edge.git",
 "typeName": "AWS::SageMaker::Device"
}
