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.
Deletes the specified data provider.
All migration projects associated with the data provider must be deleted or modified
before you can delete the data provider.
For .NET Core this operation is only available in asynchronous form. Please refer to DeleteDataProviderAsync.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public abstract DeleteDataProviderResponse DeleteDataProvider( DeleteDataProviderRequest request )
Container for the necessary parameters to execute the DeleteDataProvider service method.
Exception | Condition |
---|---|
AccessDeniedException | DMS was denied access to the endpoint. Check that the role is correctly configured. |
FailedDependencyException | A dependency threw an exception. |
InvalidResourceStateException | The resource is in a state that prevents it from being used for database migration. |
ResourceNotFoundException | The resource could not be found. |
Deletes the specified data provider.
var client = new AmazonDatabaseMigrationServiceClient(); var response = client.DeleteDataProvider(new DeleteDataProviderRequest { DataProviderIdentifier = "arn:aws:dms:us-east-1:012345678901:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345" }); DataProvider dataProvider = response.DataProvider;
.NET Framework:
Supported in: 4.5 and newer, 3.5