modify_user_group
¶
modify_user_group(
*,
config_overrides: Optional[ElastiCacheClientConfig] = 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/elasti_cache.py
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 | |