deleteUser method
Deletes a user. The user will be removed from all ACLs and in turn removed from all clusters.
May throw InvalidParameterValueException.
May throw InvalidUserStateFault.
May throw UserNotFoundFault.
Parameter userName :
The name of the user to delete
Implementation
Future<DeleteUserResponse> deleteUser({
required String userName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonMemoryDB.DeleteUser'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'UserName': userName,
},
);
return DeleteUserResponse.fromJson(jsonResponse.body);
}