Skip to content
v2.278.0

MountOptionsProperty Struct ​

Represents the mount options that are available for DataSync to access a Network File System (NFS) location.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const mountOptionsProperty: datasync.CfnLocationFSxOpenZFS.MountOptionsProperty = {
  version: 'version',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync

mount_options_property = datasync.CfnLocationFSxOpenZFS.MountOptionsProperty(
    version="version"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.datasync.*;

MountOptionsProperty mountOptionsProperty = MountOptionsProperty.builder()
        .version("version")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;

var mountOptionsProperty = new MountOptionsProperty {
    Version = "version"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

mountOptionsProperty := &MountOptionsProperty{
	Version: jsii.String("version"),
}

Properties ​

versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #
The specific NFS version that you want DataSync to use to mount your NFS share.
notes

If the server refuses to use the version specified, the sync will fail. If you don't specify a version, DataSync defaults to AUTOMATIC . That is, DataSync automatically selects a version based on negotiation with the NFS server.

You can specify the following NFS versions:

  • NFSv3 : 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. Version 4.1 also includes all features available in version 4.0.