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.

Modifies the specified data provider using the provided settings.

You must remove the data provider from all migration projects before you can modify it.

Note:

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

Syntax

C#
public abstract ModifyDataProviderResponse ModifyDataProvider(
         ModifyDataProviderRequest request
)

Parameters

request
Type: Amazon.DatabaseMigrationService.Model.ModifyDataProviderRequest

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

Return Value


The response from the ModifyDataProvider 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.
ResourceNotFoundException The resource could not be found.

Examples

Modifies the specified data provider using the provided settings.

Modify Data Provider


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;

            

Version Information

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

See Also