{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-update-location-fsx-ontap-request-schema.json",
  "title": "UpdateLocationFsxOntapRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datasync-location-fsx-ontap-api-openapi.yml#/components/schemas/UpdateLocationFsxOntapRequest",
  "type": "object",
  "properties": {
    "LocationArn": {
      "type": "string",
      "description": "Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP transfer location that you're updating."
    },
    "Protocol": {
      "$ref": "#/$defs/FsxUpdateProtocol"
    },
    "Subdirectory": {
      "type": "string",
      "description": "Specifies a path to the file share in the storage virtual machine (SVM) where you want to transfer data to or from. You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be /vol1, /vol1/tree1, or /share1. Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide."
    }
  },
  "required": [
    "LocationArn"
  ],
  "$defs": {
    "CmkSecretConfig": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "Specifies the ARN for the DataSync-managed Secrets Manager secret that that is used to access a specific storage location. This property is generated by DataSync and is read-only. DataSync encrypts this secret with the KMS key that you specify for KmsKeyArn."
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "Specifies the ARN for the customer-managed KMS key that DataSync uses to encrypt the DataSync-managed secret stored for SecretArn. DataSync provides this key to Secrets Manager."
        }
      }
    },
    "CustomSecretConfig": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "Specifies the ARN for an Secrets Manager secret."
        },
        "SecretAccessRoleArn": {
          "type": "string",
          "description": "Specifies the ARN for the Identity and Access Management role that DataSync uses to access the secret specified for SecretArn."
        }
      }
    },
    "FsxProtocolNfs": {
      "type": "object",
      "properties": {
        "MountOptions": {
          "$ref": "#/$defs/NfsMountOptions"
        }
      }
    },
    "FsxUpdateProtocol": {
      "type": "object",
      "properties": {
        "NFS": {
          "$ref": "#/$defs/FsxProtocolNfs"
        },
        "SMB": {
          "$ref": "#/$defs/FsxUpdateProtocolSmb"
        }
      }
    },
    "FsxUpdateProtocolSmb": {
      "type": "object",
      "properties": {
        "Domain": {
          "type": "string",
          "description": "Specifies the name of the Windows domain that your storage virtual machine (SVM) belongs to. If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right SVM."
        },
        "MountOptions": {
          "$ref": "#/$defs/SmbMountOptions"
        },
        "Password": {
          "type": "string",
          "description": "Specifies the password of a user who has permission to access your SVM."
        },
        "User": {
          "type": "string",
          "description": "Specifies a user that can mount and access the files, folders, and metadata in your SVM. For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol."
        },
        "CmkSecretConfig": {
          "$ref": "#/$defs/CmkSecretConfig"
        },
        "CustomSecretConfig": {
          "$ref": "#/$defs/CustomSecretConfig"
        }
      }
    },
    "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"
        }
      }
    },
    "SmbMountOptions": {
      "type": "object",
      "properties": {
        "Version": {
          "type": "string",
          "enum": [
            "AUTOMATIC",
            "SMB2",
            "SMB3",
            "SMB1",
            "SMB2_0"
          ],
          "description": "By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically. These are the following options for configuring the SMB version: AUTOMATIC (default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1. This is the recommended option. If you instead choose a specific version that your file server doesn't supp"
        }
      }
    }
  }
}