

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::DataSync::LocationFSxONTAP NfsMountOptions
<a name="aws-properties-datasync-locationfsxontap-nfsmountoptions"></a>

Specifies how DataSync can access a location using the NFS protocol.

## Syntax
<a name="aws-properties-datasync-locationfsxontap-nfsmountoptions-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-datasync-locationfsxontap-nfsmountoptions-syntax.json"></a>

```
{
  "[Version](#cfn-datasync-locationfsxontap-nfsmountoptions-version)" : String
}
```

### YAML
<a name="aws-properties-datasync-locationfsxontap-nfsmountoptions-syntax.yaml"></a>

```
  [Version](#cfn-datasync-locationfsxontap-nfsmountoptions-version): String
```

## Properties
<a name="aws-properties-datasync-locationfsxontap-nfsmountoptions-properties"></a>

`Version`  <a name="cfn-datasync-locationfsxontap-nfsmountoptions-version"></a>
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.
+ `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_1`: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.
*Required*: No  
*Type*: String  
*Allowed values*: `AUTOMATIC | NFS3 | NFS4_0 | NFS4_1`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)