R programming model
Written by
Updated at July 2, 2026
Setting a handler requires defining an R function with the following parameters:
event: Request.context: Invocation context information.
Examples
Working with HTTP request arguments
The following function returns the value of the arg request parameter:
handler <- function(event, context) {
return (list(statusCode = 200, body = event$queryStringParameters$arg))
}