removeFromGlobalCluster
inline suspend fun RdsClient.removeFromGlobalCluster(crossinline block: RemoveFromGlobalClusterRequest.Builder.() -> Unit): RemoveFromGlobalClusterResponse
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.
Samples
fun main() {
//sampleStart
// 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.
val resp = rdsClient.removeFromGlobalCluster {
globalClusterIdentifier = "myglobalcluster"
dbClusterIdentifier = "arn:aws:rds:us-west-2:123456789012:cluster:DB-1"
}
//sampleEnd
}