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.
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request.
Some settings are applied during the maintenance window.
For .NET Core this operation is only available in asynchronous form. Please refer to ModifyReplicationInstanceAsync.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public virtual ModifyReplicationInstanceResponse ModifyReplicationInstance( ModifyReplicationInstanceRequest request )
Container for the necessary parameters to execute the ModifyReplicationInstance service method.
Exception | Condition |
---|---|
AccessDeniedException | DMS was denied access to the endpoint. Check that the role is correctly configured. |
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. |
ResourceAlreadyExistsException | The resource you are attempting to create already exists. |
ResourceNotFoundException | The resource could not be found. |
StorageQuotaExceededException | The storage quota has been exceeded. |
UpgradeDependencyFailureException | An upgrade dependency is preventing the database migration. |
Modifies the replication instance to apply new settings. You can change one or more parameters by specifying these parameters and the new values in the request. Some settings are applied during the maintenance window.
var client = new AmazonDatabaseMigrationServiceClient(); var response = client.ModifyReplicationInstance(new ModifyReplicationInstanceRequest { AllocatedStorage = 123, AllowMajorVersionUpgrade = true, ApplyImmediately = true, AutoMinorVersionUpgrade = true, EngineVersion = "1.5.0", MultiAZ = true, PreferredMaintenanceWindow = "sun:06:00-sun:14:00", ReplicationInstanceArn = "arn:aws:dms:us-east-1:123456789012:rep:6UTDJGBOUS3VI3SUWA66XFJCJQ", ReplicationInstanceClass = "dms.t2.micro", ReplicationInstanceIdentifier = "test-rep-1", VpcSecurityGroupIds = new List<string> { } }); ReplicationInstance replicationInstance = response.ReplicationInstance;
.NET Framework:
Supported in: 4.5, 4.0, 3.5