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 specified data provider using the provided settings.
You must remove the data provider from all migration projects before you can modify
it.
For .NET Core this operation is only available in asynchronous form. Please refer to ModifyDataProviderAsync.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public abstract ModifyDataProviderResponse ModifyDataProvider( ModifyDataProviderRequest request )
Container for the necessary parameters to execute the ModifyDataProvider service method.
Exception | Condition |
---|---|
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. |
ResourceNotFoundException | The resource could not be found. |
Modifies the specified data provider using the provided settings.
var client = new AmazonDatabaseMigrationServiceClient(); var response = client.ModifyDataProvider(new ModifyDataProviderRequest { DataProviderIdentifier = "arn:aws:dms:us-east-1:012345678901:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345", DataProviderName = "new-name", Description = "description", Engine = "sqlserver", Settings = new DataProviderSettings { MicrosoftSqlServerSettings = new MicrosoftSqlServerDataProviderSettings { DatabaseName = "DatabaseName", Port = 11112, ServerName = "ServerName2", SslMode = "none" } } }); DataProvider dataProvider = response.DataProvider;
.NET Framework:
Supported in: 4.5, 4.0, 3.5