modify_user
¶
modify_user(
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
user_id: Optional[UserId] = None,
access_string: Optional[AccessString] = None,
append_access_string: Optional[AccessString] = None,
passwords: Optional[PasswordListInput] = None,
no_password_required: Optional[BooleanOptional] = None,
authentication_mode: Optional[AuthenticationMode] = None,
engine: Optional[EngineType] = None,
) -> User
Changes user password(s) and/or access string.
Parameters:
-
user_id(Optional[UserId], default:None) –The ID of the user.
-
access_string(Optional[AccessString], default:None) –Access permissions string used for this user.
-
append_access_string(Optional[AccessString], default:None) –Adds additional user permissions to the access string.
-
passwords(Optional[PasswordListInput], default:None) –The passwords belonging to the user. You are allowed up to two.
-
no_password_required(Optional[BooleanOptional], default:None) –Indicates no password is required for the user.
-
authentication_mode(Optional[AuthenticationMode], default:None) –Specifies how to authenticate the user.
-
engine(Optional[EngineType], default:None) –Modifies the engine listed for a user. The options are valkey or redis.
Raises:
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidUserStateFault–The user is not in active state.
-
ServiceLinkedRoleNotFoundFault–The specified service linked role (SLR) was not found.
-
UserNotFoundFault–The user does not exist or could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 | |