Module Values.GetModelResponseSource

Gets a Model.

Sourcetype nonrec t = {
  1. contentType : StringWithLengthBetween1And256.t option;
    (*

    The content-type for the model, for example, "application/json".

    *)
  2. description : StringWithLengthBetween0And1024.t option;
    (*

    The description of the model.

    *)
  3. modelId : Id.t option;
    (*

    The model identifier.

    *)
  4. name : StringWithLengthBetween1And128.t option;
    (*

    The name of the model. Must be alphanumeric.

    *)
  5. schema : StringWithLengthBetween0And32K.t option;
    (*

    The schema for the model. For application/json models, this should be JSON schema draft 4 model.

    *)
}
Sourcetype nonrec error = [
  1. | `NotFoundException of NotFoundException.t
  2. | `TooManyRequestsException of TooManyRequestsException.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval make : ?contentType:??? -> ?description:??? -> ?modelId:??? -> ?name:??? -> ?schema:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of StringWithLengthBetween1And256.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