AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates the replication instance using the specified parameters.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to CreateReplicationInstanceAsync.

Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z


public abstract CreateReplicationInstanceResponse CreateReplicationInstance(
         CreateReplicationInstanceRequest request
Type: Amazon.DatabaseMigrationService.Model.CreateReplicationInstanceRequest

Container for the necessary parameters to execute the CreateReplicationInstance service method.

Return Value
The response from the CreateReplicationInstance service method, as returned by DatabaseMigrationService.


AccessDeniedException AWS DMS was denied access to the endpoint.
InsufficientResourceCapacityException There are not enough resources allocated to the database migration.
InvalidResourceStateException The resource is in a state that prevents it from being used for database migration.
InvalidSubnetException The subnet provided is invalid.
KMSKeyNotAccessibleException AWS DMS cannot access the KMS key.
ReplicationSubnetGroupDoesNotCoverEnoughAZsException The replication subnet group does not cover enough Availability Zones (AZs). Edit the replication subnet group and add more AZs.
ResourceAlreadyExistsException The resource you are attempting to create already exists.
ResourceNotFoundException The resource could not be found.
ResourceQuotaExceededException The quota for this resource quota has been exceeded.
StorageQuotaExceededException The storage quota has been exceeded.


Creates the replication instance using the specified parameters.

Create replication instance

var response = client.CreateReplicationInstance(new CreateReplicationInstanceRequest 
    AllocatedStorage = 123,
    AutoMinorVersionUpgrade = true,
    AvailabilityZone = "",
    EngineVersion = "",
    KmsKeyId = "",
    MultiAZ = true,
    PreferredMaintenanceWindow = "",
    PubliclyAccessible = true,
    ReplicationInstanceClass = "",
    ReplicationInstanceIdentifier = "",
    ReplicationSubnetGroupIdentifier = "",
    Tags = new List {
        new Tag {
            Key = "string",
            Value = "string"
    VpcSecurityGroupIds = new List {

ReplicationInstance replicationInstance = response.ReplicationInstance;


Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also