Class: AWSCDK::Datasync::CfnLocationNFS::MountOptionsProperty

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

Overview

Specifies the options that DataSync can use to mount your NFS file server.

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)

    Specifies the NFS version that you want DataSync to use when mounting your NFS share.



572
573
574
575
# File 'datasync/cfn_location_nfs.rb', line 572

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)

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.



592
593
594
# File 'datasync/cfn_location_nfs.rb', line 592

def version
  @version
end

Class Method Details

.jsii_propertiesObject



594
595
596
597
598
# File 'datasync/cfn_location_nfs.rb', line 594

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

Instance Method Details

#to_jsiiObject



600
601
602
603
604
605
606
# File 'datasync/cfn_location_nfs.rb', line 600

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