create_user_group
async
¶
create_user_group(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
user_group_id: Optional[String] = None,
engine: Optional[EngineType] = None,
user_ids: Optional[UserIdListInput] = None,
tags: Optional[TagList] = None,
) -> UserGroup
For Valkey engine version 7.2 onwards and Redis OSS 6.0 to 7.1: Creates a user group. For more information, see Using Role Based Access Control (RBAC)
Parameters:
-
user_group_id(Optional[String], default:None) –The ID of the user group. This value is stored as a lowercase string.
-
engine(Optional[EngineType], default:None) –Sets the engine listed in a user group. The options are valkey or redis.
-
user_ids(Optional[UserIdListInput], default:None) –The list of user IDs that belong to the user group.
-
tags(Optional[TagList], default:None) –A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. Available for Valkey and Redis OSS only.
Raises:
-
DefaultUserRequired–You must add default user to a user group.
-
DuplicateUserNameFault–A user with this username already exists.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
ServiceLinkedRoleNotFoundFault–The specified service linked role (SLR) was not found.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
-
UserGroupAlreadyExistsFault–The user group with this ID already exists.
-
UserGroupQuotaExceededFault–The number of users exceeds the user group limit.
-
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
2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 | |