updateDeletionProtection method
Update deletion protection to either allow or deny deletion of the final Region in a replication set.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter arn :
The Amazon Resource Name (ARN) of the replication set to update.
Parameter deletionProtected :
Specifies if deletion protection is turned on or off in your account.
Parameter clientToken :
A token that ensures that the operation is called only once with the
specified details.
Implementation
Future<void> updateDeletionProtection({
required String arn,
required bool deletionProtected,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
'arn': arn,
'deletionProtected': deletionProtected,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/updateDeletionProtection',
exceptionFnMap: _exceptionFns,
);
}