Skip to content

Invoke Async

lambda_invoke_async R Documentation

For asynchronous function invocation, use Invoke

Description

For asynchronous function invocation, use invoke.

Invokes a function asynchronously.

The payload limit is 256KB. For larger payloads, for up to 1MB, use invoke.

If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.

Usage

lambda_invoke_async(FunctionName, InvokeArgs)

Arguments

FunctionName

[required] The name or ARN of the Lambda function.

Name formats

  • Function name⁠my-function⁠.

  • Function ARN⁠arn:aws:lambda:us-west-2:123456789012:function:my-function⁠.

  • Partial ARN⁠123456789012:function:my-function⁠.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

InvokeArgs

[required] The JSON that you want to provide to your Lambda function as input.

Value

A list with the following syntax:

list(
  Status = 123
)

Request syntax

svc$invoke_async(
  FunctionName = "string",
  InvokeArgs = raw
)

Examples

## Not run: 
# The following example invokes a Lambda function asynchronously
svc$invoke_async(
  FunctionName = "my-function",
  InvokeArgs = "{}"
)

## End(Not run)