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
12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 | |