modify_data_provider
async
¶
modify_data_provider(
data_provider_identifier: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
data_provider_name: Optional[String] = None,
description: Optional[String] = None,
engine: Optional[String] = None,
virtual: Optional[BooleanOptional] = None,
exact_settings: Optional[BooleanOptional] = None,
settings: Optional[DataProviderSettings] = None,
) -> ModifyDataProviderResponse
Modifies the specified data provider using the provided settings.
Required permissions: dms:UpdateDataProvider. For more information, see Actions, resources, and condition keys for Database Migration Service.
You must remove the data provider from all migration projects before you can modify it.
Parameters:
-
data_provider_identifier(String) –The identifier of the data provider. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens.
-
data_provider_name(Optional[String], default:None) –The name of the data provider.
-
description(Optional[String], default:None) –A user-friendly description of the data provider.
-
engine(Optional[String], default:None) –The type of database engine for the data provider.
Valid values:
aurora,aurora-postgresql,db2,db2-zos,docdb,mariadb,mongodb,mysql,oracle,postgres,redshift,sqlserver, andsybase. A value ofaurorarepresents Amazon Aurora MySQL-Compatible Edition. -
virtual(Optional[BooleanOptional], default:None) –Indicates whether the data provider is virtual.
-
exact_settings(Optional[BooleanOptional], default:None) –If this attribute is Y, the current call to
ModifyDataProviderreplaces all existing data provider settings with the exact settings that you specify in this call. If this attribute is N, the current call toModifyDataProviderdoes two things:-
It replaces any data provider settings that already exist with new values, for settings with the same names.
-
It creates new data provider settings that you specify in the call, for settings with different names.
-
-
settings(Optional[DataProviderSettings], default:None) –The settings in JSON format for a data provider.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
FailedDependencyFault–A dependency threw an exception.
-
InvalidResourceStateFault–The resource is in a state that prevents it from being used for database migration.
-
ResourceNotFoundFault–The resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Modify a data provider The following example updates the description and server name of a data provider.
>>> await client.modify_data_provider(data_provider_identifier='arn:aws:dms:us-east-1:111122223333:data-provider:EXAMPLEABCDEFGHIJKLMNOPQRS', description='Updated data provider description', engine='sqlserver', settings={'MicrosoftSqlServerSettings': {'ServerName': 'new-source-server.us-east-1.rds.amazonaws.com'}})
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 | |