{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-update-location-nfs-request-schema.json",
  "title": "UpdateLocationNfsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datasync-location-nf-api-openapi.yml#/components/schemas/UpdateLocationNfsRequest",
  "type": "object",
  "properties": {
    "LocationArn": {
      "type": "string",
      "description": "Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update."
    },
    "Subdirectory": {
      "type": "string",
      "description": "Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers."
    },
    "ServerHostname": {
      "type": "string",
      "description": "Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to."
    },
    "OnPremConfig": {
      "$ref": "#/$defs/OnPremConfig"
    },
    "MountOptions": {
      "$ref": "#/$defs/NfsMountOptions"
    }
  },
  "required": [
    "LocationArn"
  ],
  "$defs": {
    "NfsMountOptions": {
      "type": "object",
      "properties": {
        "Version": {
          "type": "string",
          "enum": [
            "AUTOMATIC",
            "NFS3",
            "NFS4_0",
            "NFS4_1",
            "NFS4_2"
          ],
          "description": "Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails. You can specify the following options: AUTOMATIC (default): DataSync chooses NFS version 4.1. For Amazon FSx for OpenZFS locations, DataSync first attempts to use NFS version 4.2, then falls back to version 4.1, and then to earlier versions if needed. NFS3: Stateless protocol version that allows for asynchronous writes on the server. NFSv4_0: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. NFSv4"
        }
      }
    },
    "OnPremConfig": {
      "type": "object",
      "properties": {
        "AgentArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your NFS file server. You can specify more than one agent. For more information, see Using multiple DataSync agents."
        }
      },
      "required": [
        "AgentArns"
      ]
    }
  }
}