updateReplicationSet method

Future<void> updateReplicationSet({
  1. required List<UpdateReplicationSetAction> actions,
  2. required String arn,
  3. String? clientToken,
})

Add or delete Regions from your replication set.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter actions : An action to add or delete a Region.

Parameter arn : The Amazon Resource Name (ARN) of the replication set you're updating.

Parameter clientToken : A token that ensures that the operation is called only once with the specified details.

Implementation

Future<void> updateReplicationSet({
  required List<UpdateReplicationSetAction> actions,
  required String arn,
  String? clientToken,
}) async {
  final $payload = <String, dynamic>{
    'actions': actions,
    'arn': arn,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/updateReplicationSet',
    exceptionFnMap: _exceptionFns,
  );
}