package lambda-runtime
Module Lambda_runtime.HttpSource
Source
type api_gateway_request_identity = {cognito_identity_pool_id : string option;account_id : string option;cognito_identity_id : string option;caller : string option;access_key : string option;api_key : string option;source_ip : string;cognito_authentication_type : string option;cognito_authentication_provider : string option;user_arn : string option;user_agent : string option;user : string option;
}Source
type api_gateway_proxy_request_context = {account_id : string;resource_id : string;stage : string;request_id : string;identity : api_gateway_request_identity;resource_path : string;http_method : string;protocol : string option;path : string option;api_id : string;(*The API Gateway REST API ID
*)
}Source
type api_gateway_proxy_request = {resource : string;path : string;http_method : string;headers : string Stdlib__Map.Make(String).t;query_string_parameters : string Stdlib__Map.Make(String).t;path_parameters : string Stdlib__Map.Make(String).t;stage_variables : string Stdlib__Map.Make(String).t;request_context : api_gateway_proxy_request_context;body : string option;is_base64_encoded : bool;
}Source
type api_gateway_proxy_response = {status_code : int;headers : string Stdlib__Map.Make(String).t;body : string;is_base64_encoded : bool;
}include LambdaRuntime
with type event := api_gateway_proxy_request
and type response := api_gateway_proxy_response
Source
val lambda :
(api_gateway_proxy_request ->
Context.t ->
(api_gateway_proxy_response, string) result) ->
unitSource
val io_lambda :
(api_gateway_proxy_request ->
Context.t ->
(api_gateway_proxy_response, string) result Lwt.t) ->
unit