Module Values.CreateVocabularyResponseSource

Creates a new custom vocabulary. When creating a new custom vocabulary, you can either upload a text file that contains your new entries, phrases, and terms into an Amazon S3 bucket and include the URI in your request. Or you can include a list of terms directly in your request using the Phrases flag. Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your custom vocabulary request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language. For more information, see Custom vocabularies.

Sourcetype nonrec t = {
  1. vocabularyName : VocabularyName.t option;
    (*

    The name you chose for your custom vocabulary.

    *)
  2. languageCode : LanguageCode.t option;
    (*

    The language code you selected for your custom vocabulary.

    *)
  3. vocabularyState : VocabularyState.t option;
    (*

    The processing state of your custom vocabulary. If the state is READY, you can use the custom vocabulary in a StartTranscriptionJob request.

    *)
  4. lastModifiedTime : DateTime.t option;
    (*

    The date and time you created your custom vocabulary. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM UTC-7 on May 4, 2022.

    *)
  5. failureReason : FailureReason.t option;
    (*

    If VocabularyState is FAILED, FailureReason contains information about why the custom vocabulary request failed. See also: Common Errors.

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `ConflictException of ConflictException.t
  3. | `InternalFailureException of InternalFailureException.t
  4. | `LimitExceededException of LimitExceededException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?vocabularyName:??? -> ?languageCode:??? -> ?vocabularyState:??? -> ?lastModifiedTime:??? -> ?failureReason:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `ConflictException of ConflictException.t | `InternalFailureException of InternalFailureException.t | `LimitExceededException of LimitExceededException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `ConflictException of ConflictException.t | `InternalFailureException of InternalFailureException.t | `LimitExceededException of LimitExceededException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of VocabularyName.t | `Timestamp of DateTime.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