Module Values.CreateAdapterRequestSource

Creates an adapter, which can be fine-tuned for enhanced performance on user provided documents. Takes an AdapterName and FeatureType. Currently the only supported feature type is QUERIES. You can also provide a Description, Tags, and a ClientRequestToken. You can choose whether or not the adapter should be AutoUpdated with the AutoUpdate argument. By default, AutoUpdate is set to DISABLED.

Sourcetype nonrec t = {
  1. adapterName : AdapterName.t;
    (*

    The name to be assigned to the adapter being created.

    *)
  2. clientRequestToken : ClientRequestToken.t option;
    (*

    Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapter requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.

    *)
  3. description : AdapterDescription.t option;
    (*

    The description to be assigned to the adapter being created.

    *)
  4. featureTypes : FeatureTypes.t;
    (*

    The type of feature that the adapter is being trained on. Currrenly, supported feature types are: QUERIES

    *)
  5. autoUpdate : AutoUpdate.t option;
    (*

    Controls whether or not the adapter should automatically update.

    *)
  6. tags : TagMap.t option;
    (*

    A list of tags to be added to the adapter.

    *)
}
Sourceval context_ : string
Sourceval make : ?clientRequestToken:??? -> ?description:??? -> ?autoUpdate:??? -> ?tags:??? -> adapterName:AdapterName.t -> featureTypes:FeatureTypes.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of AdapterName.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