AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the InvokeAsync operation.

This API is deprecated. We recommend you use Invoke API (see Invoke).

Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch Logs console.

This operation requires permission for the lambda:InvokeFunction action.

Inheritance Hierarchy


Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z


public class InvokeAsyncRequest : AmazonLambdaRequest

The InvokeAsyncRequest type exposes the following members


Public Method InvokeAsyncRequest()


Public Property FunctionName System.String

Gets and sets the property FunctionName.

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

Public Property InvokeArgs System.String

Gets and sets the property InvokeArgs. When this property is set the InvokeArgsStream property is also set with a MemoryStream containing the contents InvokeArgs

JSON that you want to provide to your cloud function as input.

Public Property InvokeArgsStream System.IO.Stream

Gets and sets the property InvokeArgsStream.

JSON that you want to provide to your Lambda function as input.


This operation invokes a Lambda function asynchronously

To invoke a Lambda function asynchronously

var response = client.InvokeAsync(new InvokeAsyncRequest 
    FunctionName = "myFunction",

integer status = response.Status;


Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone