removeFromGlobalCluster method
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.
May throw GlobalClusterNotFoundFault. May throw InvalidGlobalClusterStateFault. May throw DBClusterNotFoundFault.
Parameter dbClusterIdentifier
:
The Amazon Resource Name (ARN) identifying the cluster that was detached
from the Aurora global database cluster.
Parameter globalClusterIdentifier
:
The cluster identifier to detach from the Aurora global database cluster.
Implementation
Future<RemoveFromGlobalClusterResult> removeFromGlobalCluster({
String? dbClusterIdentifier,
String? globalClusterIdentifier,
}) async {
final $request = <String, dynamic>{};
dbClusterIdentifier?.also((arg) => $request['DbClusterIdentifier'] = arg);
globalClusterIdentifier
?.also((arg) => $request['GlobalClusterIdentifier'] = arg);
final $result = await _protocol.send(
$request,
action: 'RemoveFromGlobalCluster',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RemoveFromGlobalClusterMessage'],
shapes: shapes,
resultWrapper: 'RemoveFromGlobalClusterResult',
);
return RemoveFromGlobalClusterResult.fromXml($result);
}