increaseNodeGroupsInGlobalReplicationGroup method
Future<IncreaseNodeGroupsInGlobalReplicationGroupResult>
increaseNodeGroupsInGlobalReplicationGroup({
- required bool applyImmediately,
- required String globalReplicationGroupId,
- required int nodeGroupCount,
- List<
RegionalConfiguration> ? regionalConfigurations,
Increase the number of node groups in the Global Datastore
May throw GlobalReplicationGroupNotFoundFault. May throw InvalidGlobalReplicationGroupStateFault. May throw InvalidParameterValueException.
Parameter applyImmediately
:
Indicates that the process begins immediately. At present, the only
permitted value for this parameter is true.
Parameter globalReplicationGroupId
:
The name of the Global Datastore
Parameter nodeGroupCount
:
The number of node groups you wish to add
Parameter regionalConfigurations
:
Describes the replication group IDs, the AWS regions where they are stored
and the shard configuration for each that comprise the Global Datastore
Implementation
Future<IncreaseNodeGroupsInGlobalReplicationGroupResult>
increaseNodeGroupsInGlobalReplicationGroup({
required bool applyImmediately,
required String globalReplicationGroupId,
required int nodeGroupCount,
List<RegionalConfiguration>? regionalConfigurations,
}) async {
ArgumentError.checkNotNull(applyImmediately, 'applyImmediately');
ArgumentError.checkNotNull(
globalReplicationGroupId, 'globalReplicationGroupId');
ArgumentError.checkNotNull(nodeGroupCount, 'nodeGroupCount');
final $request = <String, dynamic>{};
$request['ApplyImmediately'] = applyImmediately;
$request['GlobalReplicationGroupId'] = globalReplicationGroupId;
$request['NodeGroupCount'] = nodeGroupCount;
regionalConfigurations
?.also((arg) => $request['RegionalConfigurations'] = arg);
final $result = await _protocol.send(
$request,
action: 'IncreaseNodeGroupsInGlobalReplicationGroup',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['IncreaseNodeGroupsInGlobalReplicationGroupMessage'],
shapes: shapes,
resultWrapper: 'IncreaseNodeGroupsInGlobalReplicationGroupResult',
);
return IncreaseNodeGroupsInGlobalReplicationGroupResult.fromXml($result);
}