modify_user_group
async
¶
modify_user_group(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
user_group_id: Optional[String] = None,
user_ids_to_add: Optional[UserIdListInput] = None,
user_ids_to_remove: Optional[UserIdListInput] = None,
engine: Optional[EngineType] = None,
) -> UserGroup
Changes the list of users that belong to the user group.
Parameters:
-
user_group_id(Optional[String], default:None) –The ID of the user group.
-
user_ids_to_add(Optional[UserIdListInput], default:None) –The list of user IDs to add to the user group.
-
user_ids_to_remove(Optional[UserIdListInput], default:None) –The list of user IDs to remove from the user group.
-
engine(Optional[EngineType], default:None) –Modifies the engine listed in a user group. The options are valkey or redis.
Raises:
-
DefaultUserRequired–You must add default user to a user group.
-
DuplicateUserNameFault–A user with this username already exists.
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
InvalidUserGroupStateFault–The user group is not in an active state.
-
ServiceLinkedRoleNotFoundFault–The specified service linked role (SLR) was not found.
-
UserGroupNotFoundFault–The user group was not found or does not exist
-
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
6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 | |