Module Values.CreateCollectionResponseSource

Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces operation. For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container. When you create a collection, it is associated with the latest version of the face model version. Collection names are case-sensitive. This operation requires permissions to perform the rekognition:CreateCollection action. If you want to tag your collection, you also require permission to perform the rekognition:TagResource operation.

Sourcetype nonrec t = {
  1. statusCode : UInteger.t option;
    (*

    HTTP status code indicating the result of the operation.

    *)
  2. collectionArn : String_.t option;
    (*

    Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources.

    *)
  3. faceModelVersion : String_.t option;
    (*

    Version number of the face detection model associated with the collection you are creating.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerError of InternalServerError.t
  3. | `InvalidParameterException of InvalidParameterException.t
  4. | `ProvisionedThroughputExceededException of ProvisionedThroughputExceededException.t
  5. | `ResourceAlreadyExistsException of ResourceAlreadyExistsException.t
  6. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  7. | `ThrottlingException of ThrottlingException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?statusCode:??? -> ?collectionArn:??? -> ?faceModelVersion:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of unit | `InternalServerError of unit | `InvalidParameterException of unit | `ProvisionedThroughputExceededException of unit | `ResourceAlreadyExistsException of unit | `ServiceQuotaExceededException of unit | `ThrottlingException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of unit | `InternalServerError of unit | `InvalidParameterException of unit | `ProvisionedThroughputExceededException of unit | `ResourceAlreadyExistsException of unit | `ServiceQuotaExceededException of unit | `ThrottlingException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of UInteger.t | `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t