AWS SDK Version 4 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.

Modifies an existing DMS Serverless replication configuration that you can use to start a replication. This command includes input validation and logic to check the state of any replication that uses this configuration. You can only modify a replication configuration before any replication that uses it has started. As soon as you have initially started a replication with a given configuiration, you can't modify that configuration, even if you stop it.

Other run statuses that allow you to run this command include FAILED and CREATED. A provisioning state that allows you to run this command is FAILED_PROVISION.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.7.2 or higher.

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

Syntax

C#
public abstract Task<ModifyReplicationConfigResponse> ModifyReplicationConfigAsync(
         ModifyReplicationConfigRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.DatabaseMigrationService.Model.ModifyReplicationConfigRequest

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

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the ModifyReplicationConfig service method, as returned by DatabaseMigrationService.

Exceptions

ExceptionCondition
AccessDeniedException DMS was denied access to the endpoint. Check that the role is correctly configured.
InvalidResourceStateException The resource is in a state that prevents it from being used for database migration.
InvalidSubnetException The subnet provided isn't valid.
KMSKeyNotAccessibleException 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.
ResourceNotFoundException The resource could not be found.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer

See Also