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
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 | |