{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-lightsail-disk.json",
  "title": "AWSLightsailDiskProperties",
  "description": "Resource Type definition for AWS::Lightsail::Disk. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-lightsail-disk.json",
    "sourceSha256": "c1c183218db19fd5d193bf749c1f339079e849ee4df44ad9701513272075b0b5"
  },
  "type": "object",
  "properties": {
    "DiskName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9][\\w\\-.]*[a-zA-Z0-9]$",
          "minLength": 1,
          "maxLength": 254
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The names to use for your new Lightsail disk."
    },
    "Location": {
      "$ref": "#/$defs/Location"
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "AddOns": {
      "description": "An array of objects representing the add-ons to enable for the new instance.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/AddOn"
      }
    },
    "SizeInGb": {
      "description": "Size of the Lightsail disk",
      "type": "integer"
    }
  },
  "typeName": "AWS::Lightsail::Disk",
  "createOnlyProperties": [
    "/properties/DiskName",
    "/properties/AvailabilityZone",
    "/properties/SizeInGb"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/DiskName"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "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 128 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",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 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"
      ],
      "title": "AWSLightsailDiskTagDefinition",
      "additionalProperties": false
    },
    "AutoSnapshotAddOn": {
      "description": "An object that represents additional parameters when enabling or modifying the automatic snapshot add-on",
      "type": "object",
      "properties": {
        "SnapshotTimeOfDay": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{2}:00$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The daily time when an automatic snapshot will be created."
        }
      },
      "title": "AWSLightsailDiskAutoSnapshotAddOnDefinition",
      "additionalProperties": false
    },
    "AddOn": {
      "description": "A addon associate with a resource.",
      "type": "object",
      "properties": {
        "AddOnType": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The add-on type"
        },
        "Status": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "Enabling",
                "Disabling",
                "Enabled",
                "Terminating",
                "Terminated",
                "Disabled",
                "Failed"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Status of the Addon"
        },
        "AutoSnapshotAddOnRequest": {
          "$ref": "#/$defs/AutoSnapshotAddOn"
        }
      },
      "required": [
        "AddOnType"
      ],
      "title": "AWSLightsailDiskAddOnDefinition",
      "additionalProperties": false
    },
    "Location": {
      "description": "Location of a resource.",
      "type": "object",
      "properties": {
        "AvailabilityZone": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Availability Zone in which to create your disk. Use the following format: us-east-2a (case sensitive). Be sure to add the include Availability Zones parameter to your request."
        },
        "RegionName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Region Name in which to create your disk."
        }
      },
      "title": "AWSLightsailDiskLocationDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "DiskName",
    "SizeInGb"
  ],
  "readOnlyProperties": [
    "/properties/AttachedTo",
    "/properties/Path",
    "/properties/IsAttached",
    "/properties/Iops",
    "/properties/AttachmentState",
    "/properties/State",
    "/properties/ResourceType",
    "/properties/Location/AvailabilityZone",
    "/properties/Location/RegionName",
    "/properties/SupportCode",
    "/properties/DiskArn"
  ],
  "taggable": true
}
