Smaws_Client_Rekognition.CreateUserCreates a new User within a collection specified by CollectionId. Takes UserId as a parameter, which is a user provided ID which should be unique within the collection. The provided UserId will alias the system generated UUID to make the UserId more user friendly.
Uses a ClientToken, an idempotency token that ensures a call to CreateUser 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 multiple CreateUser calls.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConflictException of Types.conflict_exception
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerError of Types.internal_server_error
| `InvalidParameterException of Types.invalid_parameter_exception
| `ProvisionedThroughputExceededException of
Types.provisioned_throughput_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_user_request ->
(Types.create_user_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConflictException of Types.conflict_exception
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerError of Types.internal_server_error
| `InvalidParameterException of Types.invalid_parameter_exception
| `ProvisionedThroughputExceededException of
Types.provisioned_throughput_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_user_request ->
(Types.create_user_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConflictException of Types.conflict_exception
| `IdempotentParameterMismatchException of
Types.idempotent_parameter_mismatch_exception
| `InternalServerError of Types.internal_server_error
| `InvalidParameterException of Types.invalid_parameter_exception
| `ProvisionedThroughputExceededException of
Types.provisioned_throughput_exceeded_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result