Skip to content
v2.277.0

FileSystemProtectionProperty Struct ​

Describes the protection on the file system.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_efs as efs } from 'aws-cdk-lib';
const fileSystemProtectionProperty: efs.CfnFileSystem.FileSystemProtectionProperty = {
  replicationOverwriteProtection: 'replicationOverwriteProtection',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_efs as efs

file_system_protection_property = efs.CfnFileSystem.FileSystemProtectionProperty(
    replication_overwrite_protection="replicationOverwriteProtection"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.efs.*;

FileSystemProtectionProperty fileSystemProtectionProperty = FileSystemProtectionProperty.builder()
        .replicationOverwriteProtection("replicationOverwriteProtection")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EFS;

var fileSystemProtectionProperty = new FileSystemProtectionProperty {
    ReplicationOverwriteProtection = "replicationOverwriteProtection"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fileSystemProtectionProperty := &FileSystemProtectionProperty{
	ReplicationOverwriteProtection: jsii.String("replicationOverwriteProtection"),
}

Properties ​

replicationOverwriteProtectionoptionalstringreplication_overwrite_protectionoptionalstrreplicationOverwriteProtectionoptionalStringReplicationOverwriteProtectionoptionalstringReplicationOverwriteProtectionoptional*string #
The status of the file system's replication overwrite protection.
notes
  • 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.