Module Values.DeleteBotRequestSource

Deletes all versions of a bot, including the Draft version. To delete a specific version, use the DeleteBotVersion operation. When you delete a bot, all of the resources contained in the bot are also deleted. Deleting a bot removes all locales, intents, slot, and slot types defined for the bot. If a bot has an alias, the DeleteBot operation returns a ResourceInUseException exception. If you want to delete the bot and the alias, set the skipResourceInUseCheck parameter to true.

Sourcetype nonrec t = {
  1. botId : Id.t;
    (*

    The identifier of the bot to delete.

    *)
  2. skipResourceInUseCheck : SkipResourceInUseCheck.t option;
    (*

    By default, Amazon Lex checks if any other resource, such as an alias or bot network, is using the bot version before it is deleted and throws a ResourceInUseException exception if the bot is being used by another resource. Set this parameter to true to skip this check and remove the bot even if it is being used by another resource.

    *)
}
Sourceval context_ : string
Sourceval make : ?skipResourceInUseCheck:??? -> botId:Id.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of SkipResourceInUseCheck.t | `String of Id.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