Class: AWSCDK::Datasync::CfnLocationFSXOpenZFS::MountOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
datasync/cfn_location_fsx_open_zfs.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version: nil) ⇒ MountOptionsProperty

Returns a new instance of MountOptionsProperty.

Parameters:

  • version (String, nil) (defaults to: nil)

    The specific NFS version that you want DataSync to use to mount your NFS share.



571
572
573
574
# File 'datasync/cfn_location_fsx_open_zfs.rb', line 571

def initialize(version: nil)
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#versionString? (readonly)

The specific NFS version that you want DataSync to use to mount your NFS share.

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.


588
589
590
# File 'datasync/cfn_location_fsx_open_zfs.rb', line 588

def version
  @version
end

Class Method Details

.jsii_propertiesObject



590
591
592
593
594
# File 'datasync/cfn_location_fsx_open_zfs.rb', line 590

def self.jsii_properties
  {
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



596
597
598
599
600
601
602
# File 'datasync/cfn_location_fsx_open_zfs.rb', line 596

def to_jsii
  result = {}
  result.merge!({
    "version" => @version,
  })
  result.compact
end