start_migration
¶
start_migration(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
serverless_cache_name: Optional[String] = None,
replication_group_id: Optional[String] = None,
customer_node_endpoint_list: Optional[CustomerNodeEndpointList] = None,
auto_cutover: Optional[BooleanOptional] = None,
clear_target_cache_data: Optional[BooleanOptional] = None,
) -> StartMigrationResponse
Starts the migration of data.
Parameters:
-
serverless_cache_name(Optional[String], default:None) –The name of the serverless cache to which data is being migrated.
-
replication_group_id(Optional[String], default:None) –The ID of the replication group to which data should be migrated.
-
customer_node_endpoint_list(Optional[CustomerNodeEndpointList], default:None) –The list of endpoints from which to migrate data. For Valkey or Redis OSS (cluster mode disabled), the list should have only one element. For serverless cache migrations, ElastiCache uses the endpoint that you provided in
PrepareMigration. -
auto_cutover(Optional[BooleanOptional], default:None) –Specifies whether ElastiCache automatically attempts to complete the migration after data sync is established.
-
clear_target_cache_data(Optional[BooleanOptional], default:None) –Specifies whether ElastiCache deletes existing data in the serverless cache before migration begins. After
StopMigration,StartMigrationrequires this option to restart the data sync.
Raises:
-
InvalidCacheClusterStateFault–The requested cluster is not in the
availablestate. -
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidReplicationGroupStateFault–The requested replication group is not in the
availablestate. -
InvalidServerlessCacheStateFault–The account for these credentials is not currently active.
-
MigrationHealthFault–The migration is not healthy. Check the events for this serverless cache for more details. For
CompleteMigration, setForceto true to bypass this check. -
ReplicationGroupAlreadyUnderMigrationFault–The targeted replication group is not available.
-
ReplicationGroupNotFoundFault–The specified replication group does not exist.
-
ServerlessCacheNotFoundFault–The serverless cache was not found or does not exist.
-
ServerlessCacheNotUnderMigrationFault–The serverless cache is not currently under migration.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 | |