ElastiCache.Client.
delete_user
(**kwargs)¶For Redis engine version 6.0 onwards: Deletes a user. The user will be removed from all user groups and in turn removed from all replication groups. For more information, see Using Role Based Access Control (RBAC).
See also: AWS API Documentation
Request Syntax
response = client.delete_user(
UserId='string'
)
[REQUIRED]
The ID of the user.
{
'UserId': 'string',
'UserName': 'string',
'Status': 'string',
'Engine': 'string',
'MinimumEngineVersion': 'string',
'AccessString': 'string',
'UserGroupIds': [
'string',
],
'Authentication': {
'Type': 'password'|'no-password'|'iam',
'PasswordCount': 123
},
'ARN': 'string'
}
Response Structure
The ID of the user.
The username of the user.
Indicates the user status. Can be "active", "modifying" or "deleting".
The current supported value is Redis.
The minimum engine version required, which is Redis 6.0
Access permissions string used for this user.
Returns a list of the user group IDs the user belongs to.
Denotes whether the user requires a password to authenticate.
Indicates whether the user requires a password to authenticate.
The number of passwords belonging to the user. The maximum is two.
The Amazon Resource Name (ARN) of the user.
Exceptions
ElastiCache.Client.exceptions.InvalidUserStateFault
ElastiCache.Client.exceptions.UserNotFoundFault
ElastiCache.Client.exceptions.ServiceLinkedRoleNotFoundFault
ElastiCache.Client.exceptions.InvalidParameterValueException
ElastiCache.Client.exceptions.DefaultUserAssociatedToUserGroupFault