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