Module Values.TestInvokeMethodRequestSource

Make a request to simulate the invocation of a Method.

Sourcetype nonrec t = {
  1. restApiId : String_.t;
    (*

    The string identifier of the associated RestApi.

    *)
  2. resourceId : String_.t;
    (*

    Specifies a test invoke method request's resource ID.

    *)
  3. httpMethod : String_.t;
    (*

    Specifies a test invoke method request's HTTP method.

    *)
  4. pathWithQueryString : String_.t option;
    (*

    The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

    *)
  5. body : String_.t option;
    (*

    The simulated request body of an incoming invocation request.

    *)
  6. headers : MapOfStringToString.t option;
    (*

    A key-value map of headers to simulate an incoming invocation request.

    *)
  7. multiValueHeaders : MapOfStringToList.t option;
    (*

    The headers as a map from string to list of values to simulate an incoming invocation request.

    *)
  8. clientCertificateId : String_.t option;
    (*

    A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.

    *)
  9. stageVariables : MapOfStringToString.t option;
    (*

    A key-value map of stage variables to simulate an invocation on a deployed Stage.

    *)
}
Sourceval context_ : string
Sourceval make : ?pathWithQueryString:??? -> ?body:??? -> ?headers:??? -> ?multiValueHeaders:??? -> ?clientCertificateId:??? -> ?stageVariables:??? -> restApiId:String_.t -> resourceId:String_.t -> httpMethod:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `List of [> `String of String_.t ] list | `String of String_.t ]) list | `String of String_.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