This is the workhorse function to execute calls to the Lambda API.
lambdaHTTP(
verb = "GET",
action,
query = NULL,
headers = list(),
body = NULL,
verbose = getOption("verbose", FALSE),
region = Sys.getenv("AWS_DEFAULT_REGION", "us-east-1"),
key = NULL,
secret = NULL,
session_token = NULL,
...
)
A character string specifying the HTTP verb to use.
A character string specifying the API version and endpoint.
An optional named list containing query string parameters and their character values.
A list of headers to pass to the HTTP request.
The HTTP request body.
A logical indicating whether to be verbose. Default is given
by options("verbose")
.
A character string specifying an AWS region. See
locate_credentials
.
A character string specifying an AWS Access Key. See
locate_credentials
.
A character string specifying an AWS Secret Key. See
locate_credentials
.
Optionally, a character string specifying an AWS
temporary Session Token to use in signing a request. See
locate_credentials
.
Additional arguments passed to GET
or
another httr request function.
If successful, a named list. Otherwise, a data structure of class “aws-error” containing any error message(s) from AWS and information about the request attempt.
This function constructs and signs an AWS Lambda API request and returns the results thereof, or relevant debugging information in the case of error.
get_lambda_account
, which works well as a hello world
for the package