deleteUserGroup method
For Redis engine version 6.x onwards: Deletes a ser group. The user group must first be disassociated from the replcation group before it can be deleted. For more information, see Using Role Based Access Control (RBAC).
May throw UserGroupNotFoundFault. May throw InvalidUserGroupStateFault. May throw InvalidParameterValueException.
Parameter userGroupId
:
The ID of the user group.
Implementation
Future<UserGroup> deleteUserGroup({
required String userGroupId,
}) async {
ArgumentError.checkNotNull(userGroupId, 'userGroupId');
final $request = <String, dynamic>{};
$request['UserGroupId'] = userGroupId;
final $result = await _protocol.send(
$request,
action: 'DeleteUserGroup',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteUserGroupMessage'],
shapes: shapes,
resultWrapper: 'DeleteUserGroupResult',
);
return UserGroup.fromXml($result);
}