Skip to content

Update File System Protection

efs_update_file_system_protection R Documentation

Updates protection on the file system

Description

Updates protection on the file system.

This operation requires permissions for the elasticfilesystem:UpdateFileSystemProtection action.

Usage

efs_update_file_system_protection(FileSystemId,
  ReplicationOverwriteProtection)

Arguments

FileSystemId

[required] The ID of the file system to update.

ReplicationOverwriteProtection

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 only 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.

Value

A list with the following syntax:

list(
  ReplicationOverwriteProtection = "ENABLED"|"DISABLED"|"REPLICATING"
)

Request syntax

svc$update_file_system_protection(
  FileSystemId = "string",
  ReplicationOverwriteProtection = "ENABLED"|"DISABLED"|"REPLICATING"
)