remove_from_global_cluster
¶
remove_from_global_cluster(
*,
config_overrides: Optional[RDSClientConfig] = None,
global_cluster_identifier: Optional[GlobalClusterIdentifier] = None,
db_cluster_identifier: Optional[String] = None,
) -> RemoveFromGlobalClusterResult
Detaches an Aurora secondary cluster from an Aurora global database cluster. The cluster becomes a standalone cluster with read-write capability instead of being read-only and receiving data from a primary cluster in a different Region.
This operation only applies to Aurora DB clusters.
Parameters:
-
global_cluster_identifier(Optional[GlobalClusterIdentifier], default:None) –The cluster identifier to detach from the Aurora global database cluster.
-
db_cluster_identifier(Optional[String], default:None) –The Amazon Resource Name (ARN) identifying the cluster that was detached from the Aurora global database cluster.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
GlobalClusterNotFoundFault–The
GlobalClusterIdentifierdoesn't refer to an existing global database cluster. -
InvalidDBClusterStateFault–The requested operation can't be performed while the cluster is in this state.
-
InvalidGlobalClusterStateFault–The global cluster is in an invalid state and can't perform the requested operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To detach an Aurora secondary cluster from an Aurora global database cluster The following example detaches an Aurora secondary cluster from an Aurora global database cluster. The cluster changes from being read-only to a standalone cluster with read-write capability.
>>> client.remove_from_global_cluster(global_cluster_identifier='myglobalcluster', db_cluster_identifier='arn:aws:rds:us-west-2:123456789012:cluster:DB-1')
Source code in docs_src/capo_rds/_services/rds.py
13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 | |