Class: AWSCDK::Datasync::CfnLocationFSXONTAP::NfsMountOptionsProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version: nil) ⇒ NfsMountOptionsProperty

Returns a new instance of NfsMountOptionsProperty.

Parameters:

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

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



757
758
759
760
# File 'datasync/cfn_location_fsxontap.rb', line 757

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.



777
778
779
# File 'datasync/cfn_location_fsxontap.rb', line 777

def version
  @version
end

Class Method Details

.jsii_propertiesObject



779
780
781
782
783
# File 'datasync/cfn_location_fsxontap.rb', line 779

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

Instance Method Details

#to_jsiiObject



785
786
787
788
789
790
791
# File 'datasync/cfn_location_fsxontap.rb', line 785

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