start_migration
async
¶
start_migration(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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/async_elasti_cache.py
6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 | |