Module Values.GatewayResponseSource

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

Sourcetype nonrec t = {
  1. responseType : GatewayResponseType.t option;
    (*

    The response type of the associated GatewayResponse.

    *)
  2. statusCode : StatusCode.t option;
    (*

    The HTTP status code for this GatewayResponse.

    *)
  3. responseParameters : MapOfStringToString.t option;
    (*

    Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

    *)
  4. responseTemplates : MapOfStringToString.t option;
    (*

    Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

    *)
  5. defaultResponse : Boolean.t option;
    (*

    A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not (false). A default gateway response is one generated by API Gateway without any customization by an API developer.

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `NotFoundException of NotFoundException.t
  3. | `TooManyRequestsException of TooManyRequestsException.t
  4. | `UnauthorizedException of UnauthorizedException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?responseType:??? -> ?statusCode:??? -> ?responseParameters:??? -> ?responseTemplates:??? -> ?defaultResponse:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of StatusCode.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