Class: AWSCDK::Datasync::CfnLocationFSXONTAP::ProtocolProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationFSXONTAP::ProtocolProperty
- Defined in:
- datasync/cfn_location_fsxontap.rb
Overview
Specifies the data transfer protocol that AWS DataSync uses to access your Amazon FSx file system.
Instance Attribute Summary collapse
-
#nfs ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for ONTAP file system's storage virtual machine (SVM).
-
#smb ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(nfs: nil, smb: nil) ⇒ ProtocolProperty
constructor
A new instance of ProtocolProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(nfs: nil, smb: nil) ⇒ ProtocolProperty
Returns a new instance of ProtocolProperty.
802 803 804 805 806 807 |
# File 'datasync/cfn_location_fsxontap.rb', line 802 def initialize(nfs: nil, smb: nil) @nfs = nfs.is_a?(Hash) ? ::AWSCDK::Datasync::CfnLocationFSXONTAP::NFSProperty.new(**nfs.transform_keys(&:to_sym)) : nfs Jsii::Type.check_type(@nfs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5Mb2NhdGlvbkZTeE9OVEFQLk5GU1Byb3BlcnR5In1dfX0=")), "nfs") unless @nfs.nil? @smb = smb.is_a?(Hash) ? ::AWSCDK::Datasync::CfnLocationFSXONTAP::SMBProperty.new(**smb.transform_keys(&:to_sym)) : smb Jsii::Type.check_type(@smb, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhc3luYy5DZm5Mb2NhdGlvbkZTeE9OVEFQLlNNQlByb3BlcnR5In1dfX0=")), "smb") unless @smb.nil? end |
Instance Attribute Details
#nfs ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for ONTAP file system's storage virtual machine (SVM).
813 814 815 |
# File 'datasync/cfn_location_fsxontap.rb', line 813 def nfs @nfs end |
#smb ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.
818 819 820 |
# File 'datasync/cfn_location_fsxontap.rb', line 818 def smb @smb end |
Class Method Details
.jsii_properties ⇒ Object
820 821 822 823 824 825 |
# File 'datasync/cfn_location_fsxontap.rb', line 820 def self.jsii_properties { :nfs => "nfs", :smb => "smb", } end |
Instance Method Details
#to_jsii ⇒ Object
827 828 829 830 831 832 833 834 |
# File 'datasync/cfn_location_fsxontap.rb', line 827 def to_jsii result = {} result.merge!({ "nfs" => @nfs, "smb" => @smb, }) result.compact end |