{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-create-disk-snapshot-request-schema.json",
  "title": "CreateDiskSnapshotRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-snapshots-api-openapi.yml#/components/schemas/CreateDiskSnapshotRequest",
  "type": "object",
  "properties": {
    "diskName": {
      "type": "string",
      "description": "The unique name of the source disk (Disk-Virginia-1). This parameter cannot be defined together with the instance name parameter. The disk name and instance name parameters are mutually exclusive."
    },
    "diskSnapshotName": {
      "type": "string",
      "description": "The name of the destination disk snapshot (my-disk-snapshot) based on the source disk."
    },
    "instanceName": {
      "type": "string",
      "description": "The unique name of the source instance (Amazon_Linux-512MB-Virginia-1). When this is defined, a snapshot of the instance's system volume is created. This parameter cannot be defined together with the disk name parameter. The instance name and disk name parameters are mutually exclusive."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created."
    }
  },
  "required": [
    "diskSnapshotName"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        },
        "value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        }
      }
    }
  }
}