Class: AWSCDK::EFS::CfnFileSystem::FileSystemProtectionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EFS::CfnFileSystem::FileSystemProtectionProperty
- Defined in:
- efs/cfn_file_system.rb
Overview
Describes the protection on the file system.
Instance Attribute Summary collapse
-
#replication_overwrite_protection ⇒ String?
readonly
The status of the file system's replication overwrite protection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(replication_overwrite_protection: nil) ⇒ FileSystemProtectionProperty
constructor
A new instance of FileSystemProtectionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(replication_overwrite_protection: nil) ⇒ FileSystemProtectionProperty
Returns a new instance of FileSystemProtectionProperty.
799 800 801 802 |
# File 'efs/cfn_file_system.rb', line 799 def initialize(replication_overwrite_protection: nil) @replication_overwrite_protection = replication_overwrite_protection Jsii::Type.check_type(@replication_overwrite_protection, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "replicationOverwriteProtection") unless @replication_overwrite_protection.nil? end |
Instance Attribute Details
#replication_overwrite_protection ⇒ String? (readonly)
The status of the file system's replication overwrite protection.
ENABLED– The file system cannot be used as the destination file system in a replication configuration. The file system is writeable. Replication overwrite protection isENABLEDby default.DISABLED– The file system can be used as the destination file system in a replication configuration. The file system is read-only and can only be modified by EFS replication.REPLICATING– The file system is being used as the destination file system in a replication configuration. The file system is read-only and is modified only by EFS replication.
If the replication configuration is deleted, the file system's replication overwrite protection is re-enabled, the file system becomes writeable.
814 815 816 |
# File 'efs/cfn_file_system.rb', line 814 def replication_overwrite_protection @replication_overwrite_protection end |
Class Method Details
.jsii_properties ⇒ Object
816 817 818 819 820 |
# File 'efs/cfn_file_system.rb', line 816 def self.jsii_properties { :replication_overwrite_protection => "replicationOverwriteProtection", } end |
Instance Method Details
#to_jsii ⇒ Object
822 823 824 825 826 827 828 |
# File 'efs/cfn_file_system.rb', line 822 def to_jsii result = {} result.merge!({ "replicationOverwriteProtection" => @replication_overwrite_protection, }) result.compact end |