Skip to main content

migrate_managed_replica

Function migrate_managed_replica 

Source
fn migrate_managed_replica(
    old: ClusterReplica,
    cluster_pool: Option<Vec<String>>,
) -> ClusterReplica
Expand description

Rewrites a ClusterReplica with a managed location, reconstructing only the ManagedLocation whose availability_zone user-pin became an availability_zones list and carrying every other sub-structure across unchanged. cluster_pool is Some (the owning managed cluster’s AZ list) for a replica of a managed cluster and None for a replica of an unmanaged cluster.