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 migration project using the provided parameters.
The migration project must be closed before you can modify it.
For .NET Core this operation is only available in asynchronous form. Please refer to ModifyMigrationProjectAsync.
Namespace: Amazon.DatabaseMigrationService
Assembly: AWSSDK.DatabaseMigrationService.dll
Version: 3.x.y.z
public virtual ModifyMigrationProjectResponse ModifyMigrationProject( ModifyMigrationProjectRequest request )
Container for the necessary parameters to execute the ModifyMigrationProject 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. |
| S3AccessDeniedException | Insufficient privileges are preventing access to an Amazon S3 object. |
| S3ResourceNotFoundException | A specified Amazon S3 bucket, bucket folder, or other object can't be found. |
Modifies the specified migration project using the provided parameters.
var client = new AmazonDatabaseMigrationServiceClient();
var response = client.ModifyMigrationProject(new ModifyMigrationProjectRequest
{
Description = "description",
InstanceProfileIdentifier = "my-instance-profile",
MigrationProjectIdentifier = "arn:aws:dms:us-east-1:012345678901:migration-project:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345",
MigrationProjectName = "new-name",
SchemaConversionApplicationAttributes = new SCApplicationAttributes {
S3BucketPath = "arn:aws:s3:::myuser-bucket",
S3BucketRoleArn = "arn:aws:iam::012345678901:role/Admin"
},
SourceDataProviderDescriptors = new List<DataProviderDescriptorDefinition> {
new DataProviderDescriptorDefinition {
DataProviderIdentifier = "arn:aws:dms:us-east-1:012345678901:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345",
SecretsManagerAccessRoleArn = "arn:aws:iam::012345678901:role/myuser-admin-access",
SecretsManagerSecretId = "arn:aws:secretsmanager:us-east-1:012345678901:secret:myorg/myuser/ALL.SOURCE.ORACLE_12-A1B2C3"
}
},
TargetDataProviderDescriptors = new List<DataProviderDescriptorDefinition> {
new DataProviderDescriptorDefinition {
DataProviderIdentifier = "arn:aws:dms:us-east-1:012345678901:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRSTUVWXYZ012345",
SecretsManagerAccessRoleArn = "arn:aws:iam::012345678901:role/myuser-admin-access",
SecretsManagerSecretId = "arn:aws:secretsmanager:us-east-1:012345678901:secret:myorg/myuser/TARGET.postgresql-A1B2C3"
}
}
});
MigrationProject migrationProject = response.MigrationProject;
.NET Framework:
Supported in: 4.7.2 and newer