Class ReplicationConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.efs.ReplicationConfiguration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-07T10:36:06.487Z")
@Stability(Stable)
public abstract class ReplicationConfiguration
extends software.amazon.jsii.JsiiObject
EFS Replication Configuration.
Example:
Vpc vpc; // auto generate a regional replication destination file system // auto generate a regional replication destination file system FileSystem.Builder.create(this, "RegionalReplicationFileSystem") .vpc(vpc) .replicationConfiguration(ReplicationConfiguration.regionalFileSystem("us-west-2")) .build(); // auto generate a one zone replication destination file system // auto generate a one zone replication destination file system FileSystem.Builder.create(this, "OneZoneReplicationFileSystem") .vpc(vpc) .replicationConfiguration(ReplicationConfiguration.oneZoneFileSystem("us-east-1", "us-east-1a")) .build(); FileSystem destinationFileSystem = FileSystem.Builder.create(this, "DestinationFileSystem") .vpc(vpc) // set as the read-only file system for use as a replication destination .replicationOverwriteProtection(ReplicationOverwriteProtection.DISABLED) .build(); // specify the replication destination file system // specify the replication destination file system FileSystem.Builder.create(this, "ReplicationFileSystem") .vpc(vpc) .replicationConfiguration(ReplicationConfiguration.existingFileSystem(destinationFileSystem)) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
ReplicationConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ReplicationConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationConfiguration
existingFileSystem
(IFileSystem destinationFileSystem) Specify the existing destination file system for the replication.The availability zone name of the destination file system.The existing destination file system for the replication.AWS KMS key used to protect the encrypted file system.The AWS Region in which the destination file system is located.static ReplicationConfiguration
oneZoneFileSystem
(String region, String availabilityZone) Create a new one zone destination file system for the replication.static ReplicationConfiguration
oneZoneFileSystem
(String region, String availabilityZone, IKey kmsKey) Create a new one zone destination file system for the replication.static ReplicationConfiguration
Create a new regional destination file system for the replication.static ReplicationConfiguration
regionalFileSystem
(String region) Create a new regional destination file system for the replication.static ReplicationConfiguration
regionalFileSystem
(String region, IKey kmsKey) Create a new regional destination file system for the replication.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ReplicationConfiguration
protected ReplicationConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
ReplicationConfiguration
protected ReplicationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ReplicationConfiguration
@Stability(Stable) protected ReplicationConfiguration(@NotNull ReplicationConfigurationProps options) - Parameters:
options
- This parameter is required.
-
-
Method Details
-
existingFileSystem
@Stability(Stable) @NotNull public static ReplicationConfiguration existingFileSystem(@NotNull IFileSystem destinationFileSystem) Specify the existing destination file system for the replication.- Parameters:
destinationFileSystem
- The existing destination file system for the replication. This parameter is required.
-
oneZoneFileSystem
@Stability(Stable) @NotNull public static ReplicationConfiguration oneZoneFileSystem(@NotNull String region, @NotNull String availabilityZone, @Nullable IKey kmsKey) Create a new one zone destination file system for the replication.- Parameters:
region
- The AWS Region in which the specified availability zone belongs to. This parameter is required.availabilityZone
- The availability zone name of the destination file system. This parameter is required.kmsKey
- AWS KMS key used to protect the encrypted file system.
-
oneZoneFileSystem
@Stability(Stable) @NotNull public static ReplicationConfiguration oneZoneFileSystem(@NotNull String region, @NotNull String availabilityZone) Create a new one zone destination file system for the replication.- Parameters:
region
- The AWS Region in which the specified availability zone belongs to. This parameter is required.availabilityZone
- The availability zone name of the destination file system. This parameter is required.
-
regionalFileSystem
@Stability(Stable) @NotNull public static ReplicationConfiguration regionalFileSystem(@Nullable String region, @Nullable IKey kmsKey) Create a new regional destination file system for the replication.- Parameters:
region
- The AWS Region in which the destination file system is located.kmsKey
- AWS KMS key used to protect the encrypted file system.
-
regionalFileSystem
@Stability(Stable) @NotNull public static ReplicationConfiguration regionalFileSystem(@Nullable String region) Create a new regional destination file system for the replication.- Parameters:
region
- The AWS Region in which the destination file system is located.
-
regionalFileSystem
Create a new regional destination file system for the replication. -
getAvailabilityZone
The availability zone name of the destination file system.One zone file system is used as the destination file system when this property is set.
-
getDestinationFileSystem
The existing destination file system for the replication. -
getKmsKey
AWS KMS key used to protect the encrypted file system. -
getRegion
The AWS Region in which the destination file system is located.
-