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
6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 | |