modify_data_provider
¶
modify_data_provider(
data_provider_identifier: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = 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.
>>> 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/database_migration_service.py
7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 | |