invoke_function {aws.lambda}R Documentation

Invoke Lambda Function

Description

Invoke a lambda function

Usage

invoke_function(
  name,
  qualifier,
  payload = NULL,
  type = c("RequestResponse", "Event", "DryRun"),
  log = c("None", "Tail"),
  ...
)

Arguments

name

A character string specifying the function name (either a full ARN or a max 64-character string). For functions other than create_function this can also be an object of class “aws_lambda_function”.

qualifier

Optionally, either a function version or alias. If omitted, information about the latest version is returned.

payload

Optionally, a list of parameters to send in the JSON body to the function.

type

A character string specifying one of: (1) “Event” (asynchronous execution), (2) “RequestResponse” (the default), or (3) “DryRun” to test the function without executing it.

log

A character string to control log response.

...

Additional arguments passed to lambdaHTTP.

See Also

create_function, list_functions,


[Package aws.lambda version 0.2.0 Index]