modify_user
async
¶
modify_user(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = 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/async_elasti_cache.py
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 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 | |