Module Values.DetectPiiEntitiesResponseSource

Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.

Sourcetype nonrec t = {
  1. entities : ListOfPiiEntities.t option;
    (*

    A collection of PII entities identified in the input text. For each entity, the response provides the entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServerException of InternalServerException.t
  2. | `InvalidRequestException of InvalidRequestException.t
  3. | `TextSizeLimitExceededException of TextSizeLimitExceededException.t
  4. | `UnsupportedLanguageException of UnsupportedLanguageException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?entities:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `Unknown_operation_error of string * string option | `UnsupportedLanguageException of UnsupportedLanguageException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalServerException of InternalServerException.t | `InvalidRequestException of InvalidRequestException.t | `TextSizeLimitExceededException of TextSizeLimitExceededException.t | `Unknown_operation_error of string * string option | `UnsupportedLanguageException of UnsupportedLanguageException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `Float of Float_.t | `Integer of Integer.t ]) list ] list ]) 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