remove_from_global_cluster
async
¶
remove_from_global_cluster(
*,
config_overrides: Optional[AsyncRDSClientConfig] = 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.
>>> await 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/async_rds.py
12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 | |