create_user_hierarchy_group
async
¶
create_user_hierarchy_group(
name: HierarchyGroupName,
instance_id: InstanceId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
parent_group_id: Optional[HierarchyGroupId] = None,
tags: Optional[TagMap] = None,
) -> CreateUserHierarchyGroupResponse
Creates a new user hierarchy group.
Parameters:
-
name(HierarchyGroupName) –The name of the user hierarchy group. Must not be more than 100 characters.
-
parent_group_id(Optional[HierarchyGroupId], default:None) –The identifier for the parent hierarchy group. The user hierarchy is created at level one if the parent group ID is null.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 | |