start_replication
async
¶
start_replication(
replication_config_arn: String,
start_replication_type: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
premigration_assessment_settings: Optional[String] = None,
cdc_start_time: Optional[TStamp] = None,
cdc_start_position: Optional[String] = None,
cdc_stop_position: Optional[String] = None,
) -> StartReplicationResponse
For a given DMS Serverless replication configuration, DMS connects to the source endpoint and collects the metadata to analyze the replication workload. Using this metadata, DMS then computes and provisions the required capacity and starts replicating to the target endpoint using the server resources that DMS has provisioned for the DMS Serverless replication.
Parameters:
-
replication_config_arn(String) –The Amazon Resource Name of the replication for which to start replication.
-
start_replication_type(String) –The replication type.
When the replication type is
full-loadorfull-load-and-cdc, the only valid value for the first run of the replication isstart-replication. This option will start the replication.You can also use ReloadTables to reload specific tables that failed during replication instead of restarting the replication.
The
resume-processingoption isn't applicable for a full-load replication, because you can't resume partially loaded tables during the full load phase.For a
full-load-and-cdcreplication, DMS migrates table data, and then applies data changes that occur on the source. To load all the tables again, and start capturing source changes, usereload-target. Otherwise useresume-processing, to replicate the changes from the last stop position. -
premigration_assessment_settings(Optional[String], default:None) –User-defined settings for the premigration assessment. The possible values are:
-
ResultLocationFolder: The folder within an Amazon S3 bucket where you want DMS to store the results of this assessment run. -
ResultEncryptionMode: The supported values areSSE_KMSandSSE_S3. If these values are not provided, then the files are not encrypted at rest. For more information, see Creating Amazon Web Services KMS keys to encrypt Amazon S3 target objects. -
ResultKmsKeyArn: The ARN of a customer KMS encryption key that you specify when you setResultEncryptionModetoSSE_KMS. -
IncludeOnly: A space-separated list of names for specific individual assessments that you want to include. These names come from the default list of individual assessments that Database Migration Service supports for the associated migration. -
Exclude: A space-separated list of names for specific individual assessments that you want to exclude. These names come from the default list of individual assessments that Database Migration Service supports for the associated migration. -
FailOnAssessmentFailure: A configurable setting you can set totrue(the default setting) orfalse. Use this setting to to stop the replication from starting automatically if the assessment fails. This can help you evaluate the issue that is preventing the replication from running successfully.
-
-
cdc_start_time(Optional[TStamp], default:None) –Indicates the start time for a change data capture (CDC) operation. Use either
CdcStartTimeorCdcStartPositionto specify when you want a CDC operation to start. Specifying both values results in an error. -
cdc_start_position(Optional[String], default:None) –Indicates when you want a change data capture (CDC) operation to start. Use either
CdcStartPositionorCdcStartTimeto specify when you want a CDC operation to start. Specifying both values results in an error.The value can be in date, checkpoint, or LSN/SCN format.
-
cdc_stop_position(Optional[String], default:None) –Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
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.
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 | |