Rekognition / Client / create_user
create_user#
- Rekognition.Client.create_user(**kwargs)#
Creates a new User within a collection specified by
CollectionId
. TakesUserId
as a parameter, which is a user provided ID which should be unique within the collection. The providedUserId
will alias the system generated UUID to make theUserId
more user friendly.Uses a
ClientToken
, an idempotency token that ensures a call toCreateUser
completes only once. If the value is not supplied, the AWS SDK generates an idempotency token for the requests. This prevents retries after a network error results from making multipleCreateUser
calls.See also: AWS API Documentation
Request Syntax
response = client.create_user( CollectionId='string', UserId='string', ClientRequestToken='string' )
- Parameters:
CollectionId (string) –
[REQUIRED]
The ID of an existing collection to which the new UserID needs to be created.
UserId (string) –
[REQUIRED]
ID for the UserID to be created. This ID needs to be unique within the collection.
ClientRequestToken (string) –
Idempotent token used to identify the request to
CreateUser
. If you use the same token with multipleCreateUser
requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Rekognition.Client.exceptions.InvalidParameterException
Rekognition.Client.exceptions.ConflictException
Rekognition.Client.exceptions.ResourceNotFoundException
Rekognition.Client.exceptions.ServiceQuotaExceededException
Rekognition.Client.exceptions.ProvisionedThroughputExceededException
Rekognition.Client.exceptions.IdempotentParameterMismatchException
Rekognition.Client.exceptions.AccessDeniedException
Rekognition.Client.exceptions.InternalServerError
Rekognition.Client.exceptions.ThrottlingException