{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fsx/json-schema/amazon-fsx-update-volume-request-schema.json",
  "title": "UpdateVolumeRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fsx-volume-api-openapi.yml#/components/schemas/UpdateVolumeRequest",
  "type": "object",
  "properties": {
    "ClientRequestToken": {
      "type": "string"
    },
    "VolumeId": {
      "type": "string",
      "description": "The ID of the volume that you want to update, in the format fsvol-0123456789abcdef0."
    },
    "OntapConfiguration": {
      "$ref": "#/$defs/UpdateOntapVolumeConfiguration"
    },
    "Name": {
      "type": "string",
      "description": "The name of the OpenZFS volume. OpenZFS root volumes are automatically named FSX. Child volume names must be unique among their parent volume's children. The name of the volume is part of the mount string for the OpenZFS volume."
    },
    "OpenZFSConfiguration": {
      "$ref": "#/$defs/UpdateOpenZFSVolumeConfiguration"
    }
  },
  "required": [
    "VolumeId"
  ],
  "$defs": {
    "AutocommitPeriod": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "MINUTES",
            "HOURS",
            "DAYS",
            "MONTHS",
            "YEARS",
            "NONE"
          ],
          "description": "Defines the type of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. Setting this value to NONE disables autocommit. The default value is NONE."
        },
        "Value": {
          "type": "integer",
          "description": "Defines the amount of time for the autocommit period of a file in an FSx for ONTAP SnapLock volume. The following ranges are valid: Minutes: 5 - 65,535 Hours: 1 - 65,535 Days: 1 - 3,650 Months: 1 - 120 Years: 1 - 10"
        }
      },
      "required": [
        "Type"
      ]
    },
    "OpenZFSClientConfiguration": {
      "type": "object",
      "properties": {
        "Clients": {
          "type": "string",
          "description": "A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24). By default, Amazon FSx uses the wildcard character when specifying the client."
        },
        "Options": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The options to use when mounting the file system. For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page. When choosing your options, consider the following: crossmnt is used by default. If you don't specify crossmnt when changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory. sync is used by default. If you instead specify async, the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data."
        }
      },
      "required": [
        "Clients",
        "Options"
      ]
    },
    "OpenZFSNfsExport": {
      "type": "object",
      "properties": {
        "ClientConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenZFSClientConfiguration"
          },
          "description": "A list of configuration objects that contain the client and options for mounting the OpenZFS file system."
        }
      },
      "required": [
        "ClientConfigurations"
      ]
    },
    "OpenZFSUserOrGroupQuota": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "USER",
            "GROUP"
          ],
          "description": "Specifies whether the quota applies to a user or group."
        },
        "Id": {
          "type": "integer",
          "description": "The ID of the user or group that the quota applies to."
        },
        "StorageCapacityQuotaGiB": {
          "type": "integer",
          "description": "The user or group's storage quota, in gibibytes (GiB)."
        }
      },
      "required": [
        "Type",
        "Id",
        "StorageCapacityQuotaGiB"
      ]
    },
    "RetentionPeriod": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "SECONDS",
            "MINUTES",
            "HOURS",
            "DAYS",
            "MONTHS",
            "YEARS",
            "INFINITE",
            "UNSPECIFIED"
          ],
          "description": "Defines the type of time for the retention period of an FSx for ONTAP SnapLock volume. Set it to one of the valid types. If you set it to INFINITE, the files are retained forever. If you set it to UNSPECIFIED, the files are retained until you set an explicit retention period."
        },
        "Value": {
          "type": "integer",
          "description": "Defines the amount of time for the retention period of an FSx for ONTAP SnapLock volume. You can't set a value for INFINITE or UNSPECIFIED. For all other options, the following ranges are valid: Seconds: 0 - 65,535 Minutes: 0 - 65,535 Hours: 0 - 24 Days: 0 - 365 Months: 0 - 12 Years: 0 - 100"
        }
      },
      "required": [
        "Type"
      ]
    },
    "SnaplockRetentionPeriod": {
      "type": "object",
      "properties": {
        "DefaultRetention": {
          "$ref": "#/$defs/RetentionPeriod"
        },
        "MinimumRetention": {
          "$ref": "#/$defs/RetentionPeriod"
        },
        "MaximumRetention": {
          "$ref": "#/$defs/RetentionPeriod"
        }
      },
      "required": [
        "DefaultRetention",
        "MinimumRetention",
        "MaximumRetention"
      ]
    },
    "TieringPolicy": {
      "type": "object",
      "properties": {
        "CoolingPeriod": {
          "type": "integer",
          "description": "Specifies the number of days that user data in a volume must remain inactive before it is considered \"cold\" and moved to the capacity pool. Used with the AUTO and SNAPSHOT_ONLY tiering policies. Enter a whole number between 2 and 183. Default values are 31 days for AUTO and 2 days for SNAPSHOT_ONLY."
        },
        "Name": {
          "type": "string",
          "enum": [
            "SNAPSHOT_ONLY",
            "AUTO",
            "ALL",
            "NONE"
          ],
          "description": "Specifies the tiering policy used to transition data. Default value is SNAPSHOT_ONLY. SNAPSHOT_ONLY - moves cold snapshots to the capacity pool storage tier. AUTO - moves cold user data and snapshots to the capacity pool storage tier based on your access patterns. ALL - moves all user data blocks in both the active file system and Snapshot copies to the storage pool tier. NONE - keeps a volume's data in the primary storage tier, preventing it from being moved to the capacity pool tier."
        }
      }
    },
    "UpdateOntapVolumeConfiguration": {
      "type": "object",
      "properties": {
        "JunctionPath": {
          "type": "string",
          "description": "Specifies the location in the SVM's namespace where the volume is mounted. The JunctionPath must have a leading forward slash, such as /vol3."
        },
        "SecurityStyle": {
          "type": "string",
          "enum": [
            "UNIX",
            "NTFS",
            "MIXED"
          ],
          "description": "The security style for the volume, which can be UNIX, NTFS, or MIXED."
        },
        "SizeInMegabytes": {
          "type": "integer",
          "description": "Specifies the size of the volume in megabytes."
        },
        "StorageEfficiencyEnabled": {
          "type": "boolean",
          "description": "Default is false. Set to true to enable the deduplication, compression, and compaction storage efficiency features on the volume."
        },
        "TieringPolicy": {
          "$ref": "#/$defs/TieringPolicy"
        },
        "SnapshotPolicy": {
          "type": "string",
          "description": "Specifies the snapshot policy for the volume. There are three built-in snapshot policies: default: This is the default policy. A maximum of six hourly snapshots taken five minutes past the hour. A maximum of two daily snapshots taken Monday through Saturday at 10 minutes after midnight. A maximum of two weekly snapshots taken every Sunday at 15 minutes after midnight. default-1weekly: This policy is the same as the default policy except that it only retains one snapshot from the weekly schedule. none: This policy does not take any snapshots. This policy can be assigned to volumes to prevent au"
        },
        "CopyTagsToBackups": {
          "type": "boolean",
          "description": "A boolean flag indicating whether tags for the volume should be copied to backups. This value defaults to false. If it's set to true, all tags for the volume are copied to all automatic and user-initiated backups where the user doesn't specify tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups. If you specify one or more tags when creating a user-initiated backup, no tags are copied from the volume, regardless of this value."
        },
        "SnaplockConfiguration": {
          "$ref": "#/$defs/UpdateSnaplockConfiguration"
        },
        "SizeInBytes": {
          "type": "integer",
          "description": "The configured size of the volume, in bytes."
        }
      }
    },
    "UpdateOpenZFSVolumeConfiguration": {
      "type": "object",
      "properties": {
        "StorageCapacityReservationGiB": {
          "type": "integer",
          "description": "The amount of storage in gibibytes (GiB) to reserve from the parent volume. You can't reserve more storage than the parent volume has reserved. You can specify a value of -1 to unset a volume's storage capacity reservation."
        },
        "StorageCapacityQuotaGiB": {
          "type": "integer",
          "description": "The maximum amount of storage in gibibytes (GiB) that the volume can use from its parent. You can specify a quota larger than the storage on the parent volume. You can specify a value of -1 to unset a volume's storage capacity quota."
        },
        "RecordSizeKiB": {
          "type": "integer",
          "description": "Specifies the record size of an OpenZFS volume, in kibibytes (KiB). Valid values are 4, 8, 16, 32, 64, 128, 256, 512, or 1024 KiB. The default is 128 KiB. Most workloads should use the default record size. Database workflows can benefit from a smaller record size, while streaming workflows can benefit from a larger record size. For additional guidance on when to set a custom record size, see Tips for maximizing performance in the Amazon FSx for OpenZFS User Guide."
        },
        "DataCompressionType": {
          "type": "string",
          "enum": [
            "NONE",
            "ZSTD",
            "LZ4"
          ],
          "description": "Specifies the method used to compress the data on the volume. The compression type is NONE by default. NONE - Doesn't compress the data on the volume. NONE is the default. ZSTD - Compresses the data in the volume using the Zstandard (ZSTD) compression algorithm. Compared to LZ4, Z-Standard provides a better compression ratio to minimize on-disk storage utilization. LZ4 - Compresses the data in the volume using the LZ4 compression algorithm. Compared to Z-Standard, LZ4 is less compute-intensive and delivers higher write throughput speeds."
        },
        "NfsExports": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenZFSNfsExport"
          },
          "description": "The configuration object for mounting a Network File System (NFS) file system."
        },
        "UserAndGroupQuotas": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenZFSUserOrGroupQuota"
          },
          "description": "An object specifying how much storage users or groups can use on the volume."
        },
        "ReadOnly": {
          "type": "boolean",
          "description": "A Boolean value indicating whether the volume is read-only."
        }
      }
    },
    "UpdateSnaplockConfiguration": {
      "type": "object",
      "properties": {
        "AuditLogVolume": {
          "type": "boolean",
          "description": "Enables or disables the audit log volume for an FSx for ONTAP SnapLock volume. The default value is false. If you set AuditLogVolume to true, the SnapLock volume is created as an audit log volume. The minimum retention period for an audit log volume is six months. For more information, see SnapLock audit log volumes."
        },
        "AutocommitPeriod": {
          "$ref": "#/$defs/AutocommitPeriod"
        },
        "PrivilegedDelete": {
          "type": "string",
          "enum": [
            "DISABLED",
            "ENABLED",
            "PERMANENTLY_DISABLED"
          ],
          "description": "Enables, disables, or permanently disables privileged delete on an FSx for ONTAP SnapLock Enterprise volume. Enabling privileged delete allows SnapLock administrators to delete write once, read many (WORM) files even if they have active retention periods. PERMANENTLY_DISABLED is a terminal state. If privileged delete is permanently disabled on a SnapLock volume, you can't re-enable it. The default value is DISABLED. For more information, see Privileged delete."
        },
        "RetentionPeriod": {
          "$ref": "#/$defs/SnaplockRetentionPeriod"
        },
        "VolumeAppendModeEnabled": {
          "type": "boolean",
          "description": "Enables or disables volume-append mode on an FSx for ONTAP SnapLock volume. Volume-append mode allows you to create WORM-appendable files and write data to them incrementally. The default value is false. For more information, see Volume-append mode."
        }
      }
    }
  }
}