View source: R/lambda-config.R
function_accepts_context | R Documentation |
context
argumentThe context of a Lambda is the metadata associated with each request, such as the ARN. In other languages, a function used in a Lambda must accept the context as an argument. We allow here for functions that disregard it, since it's not necessary.
The purpose of functions_accepts_context
then is to determine if the
arguments of the function defined by the handler includes context
, in which
case we pass the context
as an argument whenever the Lambda is invoked. The
context
argument must be named (...
won't be recognised). Primitive
functions will always return FALSE.
function_accepts_context(func)
func |
Function that may or may not accept a |
logical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.