{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces/json-schema/amazon-workspaces-create-volume-request-schema.json",
  "title": "CreateVolumeRequest",
  "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/CreateVolumeRequest",
  "type": "object",
  "properties": {
    "AvailabilityZone": {
      "type": "string",
      "description": "Availability zone for the volume."
    },
    "ClientToken": {
      "type": "string",
      "description": "Unique token to prevent duplicate volume creation."
    },
    "Encrypted": {
      "type": "boolean",
      "description": "Indicates if the volume should be encrypted."
    },
    "Iops": {
      "type": "integer",
      "description": "Input/output operations per second for the volume."
    },
    "KmsKeyId": {
      "type": "string",
      "description": "KMS key for volume encryption."
    },
    "SizeInGB": {
      "type": "integer",
      "description": "Volume size in gigabytes."
    },
    "SnapshotId": {
      "type": "string",
      "description": "Source snapshot for volume creation."
    },
    "TagSpecifications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagSpecification"
      },
      "description": "Metadata tags for the volume."
    },
    "Throughput": {
      "type": "integer",
      "description": "Volume throughput performance."
    },
    "VolumeType": {
      "type": "string",
      "enum": [
        "standard",
        "io1",
        "io2",
        "gp2",
        "sc1",
        "st1",
        "gp3"
      ],
      "description": "Type of EBS volume."
    }
  },
  "required": [
    "AvailabilityZone"
  ],
  "$defs": {
    "TagSpecification": {
      "type": "object",
      "properties": {
        "ResourceType": {
          "type": "string",
          "enum": [
            "instance",
            "volume",
            "spot-instances-request",
            "network-interface"
          ],
          "description": "Type of resource being tagged."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WorkspacesInstancesTag"
          },
          "description": "Collection of tags for the specified resource."
        }
      }
    },
    "WorkspacesInstancesTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Unique identifier for the tag."
        },
        "Value": {
          "type": "string",
          "description": "Value associated with the tag key."
        }
      }
    }
  }
}