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
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 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 | |