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.
If you are using the versioning feature, you can invoke the specific function version
by providing function version or alias name that is pointing to the function version
using the Qualifier
parameter in the request. If you don't provide the
Qualifier
parameter, the $LATEST
version of the Lambda function
is invoked. For information about the versioning feature, see AWS
Lambda Function Versioning and Aliases.
This operation requires permission for the lambda:InvokeFunction
action.
Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class InvokeRequest : AmazonLambdaRequest IRequestEvents
The InvokeRequest type exposes the following members
Name | Description | |
---|---|---|
InvokeRequest() |
Name | Type | Description | |
---|---|---|---|
ClientContext | System.String |
Gets and sets the property ClientContext. When this property is set the ClientContextBase64
property is also set with a base64-encoded string containing the contents of ClientContext.
Using the |
|
ClientContextBase64 | System.String |
Gets and sets the property ClientContextBase64.
Using the The ClientContext JSON must be base64-encoded. |
|
FunctionName | System.String |
Gets and sets the property FunctionName.
The Lambda function name.
You can specify a function name (for example, |
|
InvocationType | Amazon.Lambda.InvocationType |
Gets and sets the property InvocationType.
By default, the |
|
LogType | Amazon.Lambda.LogType |
Gets and sets the property LogType.
You can set this optional parameter to |
|
Payload | System.String |
Gets and sets the property Payload. When this property is set the PayloadStream
property is also set with a MemoryStream containing the contents of Payload.
JSON that you want to provide to your cloud function as input. |
|
PayloadStream | System.IO.MemoryStream |
Gets and sets the property PayloadStream.
JSON that you want to provide to your Lambda function as input. |
|
Qualifier | System.String |
Gets and sets the property Qualifier.
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
If you don't provide this parameter, then the API uses unqualified function ARN which
results in invocation of the |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8