disassociateGlobalReplicationGroup method
Remove a secondary cluster from the Global Datastore using the Global Datastore name. The secondary cluster will no longer receive updates from the primary cluster, but will remain as a standalone cluster in that AWS region.
May throw GlobalReplicationGroupNotFoundFault. May throw InvalidGlobalReplicationGroupStateFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.
Parameter globalReplicationGroupId
:
The name of the Global Datastore
Parameter replicationGroupId
:
The name of the secondary cluster you wish to remove from the Global
Datastore
Parameter replicationGroupRegion
:
The AWS region of secondary cluster you wish to remove from the Global
Datastore
Implementation
Future<DisassociateGlobalReplicationGroupResult>
disassociateGlobalReplicationGroup({
required String globalReplicationGroupId,
required String replicationGroupId,
required String replicationGroupRegion,
}) async {
ArgumentError.checkNotNull(
globalReplicationGroupId, 'globalReplicationGroupId');
ArgumentError.checkNotNull(replicationGroupId, 'replicationGroupId');
ArgumentError.checkNotNull(
replicationGroupRegion, 'replicationGroupRegion');
final $request = <String, dynamic>{};
$request['GlobalReplicationGroupId'] = globalReplicationGroupId;
$request['ReplicationGroupId'] = replicationGroupId;
$request['ReplicationGroupRegion'] = replicationGroupRegion;
final $result = await _protocol.send(
$request,
action: 'DisassociateGlobalReplicationGroup',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DisassociateGlobalReplicationGroupMessage'],
shapes: shapes,
resultWrapper: 'DisassociateGlobalReplicationGroupResult',
);
return DisassociateGlobalReplicationGroupResult.fromXml($result);
}