ReplicationOverwriteProtection Enum
The status of the file system's replication overwrite protection.
| Source | aws-efs/lib/efs-file-system.ts |
|---|---|
| Type last changed |
Example
ts
const fileSystem = new efs.FileSystem(this, 'MyEfsFileSystem', {
vpc: new ec2.Vpc(this, 'VPC'),
lifecyclePolicy: efs.LifecyclePolicy.AFTER_14_DAYS, // files are not transitioned to infrequent access (IA) storage by default
performanceMode: efs.PerformanceMode.GENERAL_PURPOSE, // default
outOfInfrequentAccessPolicy: efs.OutOfInfrequentAccessPolicy.AFTER_1_ACCESS, // files are not transitioned back from (infrequent access) IA to primary storage by default
transitionToArchivePolicy: efs.LifecyclePolicy.AFTER_14_DAYS, // files are not transitioned to Archive by default
replicationOverwriteProtection: efs.ReplicationOverwriteProtection.ENABLED, // Set to `DISABLED` if you want to create a read-only file system for use as a replication destination
});
python
file_system = efs.FileSystem(self, "MyEfsFileSystem",
vpc=ec2.Vpc(self, "VPC"),
lifecycle_policy=efs.LifecyclePolicy.AFTER_14_DAYS, # files are not transitioned to infrequent access (IA) storage by default
performance_mode=efs.PerformanceMode.GENERAL_PURPOSE, # default
out_of_infrequent_access_policy=efs.OutOfInfrequentAccessPolicy.AFTER_1_ACCESS, # files are not transitioned back from (infrequent access) IA to primary storage by default
transition_to_archive_policy=efs.LifecyclePolicy.AFTER_14_DAYS, # files are not transitioned to Archive by default
replication_overwrite_protection=efs.ReplicationOverwriteProtection.ENABLED
)
java
FileSystem fileSystem = FileSystem.Builder.create(this, "MyEfsFileSystem")
.vpc(new Vpc(this, "VPC"))
.lifecyclePolicy(LifecyclePolicy.AFTER_14_DAYS) // files are not transitioned to infrequent access (IA) storage by default
.performanceMode(PerformanceMode.GENERAL_PURPOSE) // default
.outOfInfrequentAccessPolicy(OutOfInfrequentAccessPolicy.AFTER_1_ACCESS) // files are not transitioned back from (infrequent access) IA to primary storage by default
.transitionToArchivePolicy(LifecyclePolicy.AFTER_14_DAYS) // files are not transitioned to Archive by default
.replicationOverwriteProtection(ReplicationOverwriteProtection.ENABLED)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var fileSystem = new FileSystem(this, "MyEfsFileSystem", new FileSystemProps {
Vpc = new Vpc(this, "VPC"),
LifecyclePolicy = LifecyclePolicy.AFTER_14_DAYS, // files are not transitioned to infrequent access (IA) storage by default
PerformanceMode = PerformanceMode.GENERAL_PURPOSE, // default
OutOfInfrequentAccessPolicy = OutOfInfrequentAccessPolicy.AFTER_1_ACCESS, // files are not transitioned back from (infrequent access) IA to primary storage by default
TransitionToArchivePolicy = LifecyclePolicy.AFTER_14_DAYS, // files are not transitioned to Archive by default
ReplicationOverwriteProtection = ReplicationOverwriteProtection.ENABLED
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
fileSystem := efs.NewFileSystem(this, jsii.String("MyEfsFileSystem"), &FileSystemProps{
Vpc: ec2.NewVpc(this, jsii.String("VPC")),
LifecyclePolicy: efs.LifecyclePolicy_AFTER_14_DAYS,
// files are not transitioned to infrequent access (IA) storage by default
PerformanceMode: efs.PerformanceMode_GENERAL_PURPOSE,
// default
OutOfInfrequentAccessPolicy: efs.OutOfInfrequentAccessPolicy_AFTER_1_ACCESS,
// files are not transitioned back from (infrequent access) IA to primary storage by default
TransitionToArchivePolicy: efs.LifecyclePolicy_AFTER_14_DAYS,
// files are not transitioned to Archive by default
ReplicationOverwriteProtection: efs.ReplicationOverwriteProtection_ENABLED,
})
Members
| Member | Description |
|---|---|
ENABLED | Enable the filesystem's replication overwrite protection. |
DISABLED | Disable the filesystem's replication overwrite protection. |
Referenced by
FileSystemProps.replicationOverwriteProtectionreplication_overwrite_protectionreplicationOverwriteProtectionReplicationOverwriteProtectionReplicationOverwriteProtection