{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-modify-volume-request-schema.json",
  "title": "ModifyVolumeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-volume-api-openapi.yml#/components/schemas/ModifyVolumeRequest",
  "type": "object",
  "properties": {
    "VolumeId": {
      "type": "string",
      "description": "Specifies the identifier of the volume to modify."
    },
    "SizeInGB": {
      "type": "integer",
      "description": "Specifies the target size of the volume, in GiB. The target size must be greater than or equal to the current size of the volume. If you don't specify a size, the current size is retained."
    },
    "VolumeType": {
      "type": "string",
      "enum": [
        "standard",
        "io1",
        "io2",
        "gp2",
        "sc1",
        "st1",
        "gp3"
      ],
      "description": "Specifies the target Amazon Elastic Block Store (Amazon EBS) volume type. If you don't specify a volume type, the current volume type is retained."
    },
    "Iops": {
      "type": "integer",
      "description": "Specifies the target IOPS rate of the volume. This parameter is valid only for gp3, io1, and io2 volumes. If you don't specify IOPS and keep the same volume type, the current IOPS rate is retained."
    },
    "Throughput": {
      "type": "integer",
      "description": "Specifies the target throughput of the volume, in MiB/s. This parameter is valid only for gp3 volumes. If you don't specify throughput and the volume remains gp3, the current throughput is retained."
    },
    "ClientToken": {
      "type": "string",
      "description": "Unique token to ensure idempotent volume modification, preventing duplicate volume modifications."
    }
  },
  "required": [
    "VolumeId"
  ]
}