Class: AWSCDK::EFS::CfnFileSystem::FileSystemProtectionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
efs/cfn_file_system.rb

Overview

Describes the protection on the file system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(replication_overwrite_protection: nil) ⇒ FileSystemProtectionProperty

Returns a new instance of FileSystemProtectionProperty.

Parameters:

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

    The status of the file system's replication overwrite protection.



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_protectionString? (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 is ENABLED by 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_propertiesObject



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_jsiiObject



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