Class: AWSCDK::Datasync::CfnLocationNFS::MountOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationNFS::MountOptionsProperty
- 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
-
#version ⇒ String?
readonly
Specifies the NFS version that you want DataSync to use when mounting your NFS share.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(version: nil) ⇒ MountOptionsProperty
constructor
A new instance of MountOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(version: nil) ⇒ MountOptionsProperty
Returns a new instance of MountOptionsProperty.
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
#version ⇒ String? (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_properties ⇒ Object
594 595 596 597 598 |
# File 'datasync/cfn_location_nfs.rb', line 594 def self.jsii_properties { :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |