{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-sagemaker-devicefleet.json",
  "title": "AWSSageMakerDeviceFleetProperties",
  "description": "Resource schema for AWS::SageMaker::DeviceFleet. 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-devicefleet.json",
    "sourceSha256": "5afb35866a613569c5b67e1b39ce745d5046729336c101dee9d929d7228a2c86"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\S\\s]+",
          "minLength": 0,
          "maxLength": 800
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Description for the edge device fleet"
    },
    "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"
    },
    "OutputConfig": {
      "description": "S3 bucket and an ecryption key id (if available) to store outputs for the fleet",
      "$ref": "#/$defs/EdgeOutputConfig"
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[a-z\\-]*:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+$",
          "minLength": 20,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Role associated with the device fleet"
    },
    "Tags": {
      "description": "Associate tags with the resource",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::SageMaker::DeviceFleet",
  "createOnlyProperties": [
    "/properties/DeviceFleetName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sagemaker-edge.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/DeviceFleetName"
  ],
  "required": [
    "DeviceFleetName",
    "OutputConfig",
    "RoleArn"
  ],
  "$defs": {
    "EdgeOutputConfig": {
      "type": "object",
      "properties": {
        "S3OutputLocation": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^s3://([^/]+)/?(.*)$",
              "maxLength": 1024
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Amazon Simple Storage (S3) bucket URI"
        },
        "KmsKeyId": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9:_-]+",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The KMS key id used for encryption on the S3 bucket"
        }
      },
      "required": [
        "S3OutputLocation"
      ],
      "title": "AWSSageMakerDeviceFleetEdgeOutputConfigDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "Key-value pair to associate as a tag for the resource",
      "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": "AWSSageMakerDeviceFleetTagDefinition",
      "additionalProperties": false
    }
  }
}
