{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-create-location-nfs-request-schema.json",
  "title": "CreateLocationNfsRequest",
  "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/CreateLocationNfsRequest",
  "type": "object",
  "properties": {
    "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"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagListEntry"
      },
      "description": "Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location."
    }
  },
  "required": [
    "Subdirectory",
    "ServerHostname",
    "OnPremConfig"
  ],
  "$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"
      ]
    },
    "TagListEntry": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for an Amazon Web Services resource tag."
        },
        "Value": {
          "type": "string",
          "description": "The value for an Amazon Web Services resource tag."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}