{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-sagemaker-device.json",
  "title": "AWSSageMakerDeviceProperties",
  "description": "Resource schema for AWS::SageMaker::Device. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sagemaker-edge.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-sagemaker-device.json",
    "sourceSha256": "0d9e6e282a10d10dc343147530925dfebccffd6bd6b6795e4918c100196bd3df"
  },
  "type": "object",
  "properties": {
    "DeviceFleetName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9](-*_*[a-zA-Z0-9])*$",
          "minLength": 1,
          "maxLength": 63
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the edge device fleet"
    },
    "Device": {
      "description": "The Edge Device you want to register against a device fleet",
      "$ref": "#/$defs/Device"
    },
    "Tags": {
      "description": "Associate tags with the resource",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::SageMaker::Device",
  "createOnlyProperties": [
    "/properties/Device/DeviceName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sagemaker-edge.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Device/DeviceName"
  ],
  "required": [
    "DeviceFleetName"
  ],
  "$defs": {
    "Device": {
      "description": "Edge device you want to create",
      "type": "object",
      "properties": {
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[\\S\\s]+",
              "minLength": 1,
              "maxLength": 40
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Description of the device"
        },
        "DeviceName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9](-*[a-zA-Z0-9])*$",
              "minLength": 1,
              "maxLength": 63
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the device"
        },
        "IotThingName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9:_-]+",
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "AWS Internet of Things (IoT) object name."
        }
      },
      "required": [
        "DeviceName"
      ],
      "title": "AWSSageMakerDeviceDeviceDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^((?!aws:)[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key value of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSSageMakerDeviceTagDefinition",
      "additionalProperties": false
    }
  }
}
