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
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 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 | |