AWS SDK Version 2 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.

.NET Framework 3.5
 
Identifies an Amazon Kinesis stream as the event source for an AWS Lambda function. AWS Lambda invokes the specified function when records are posted to the stream.

This is the pull model, where AWS Lambda invokes the function. For more information, go to AWS LambdaL How it Works in the AWS Lambda Developer Guide.

This association between an Amazon Kinesis stream and an AWS Lambda function is called the event source mapping. You provide the configuration information (for example, which stream to read from and which AWS Lambda function to invoke) for the event source mapping in the request body.

This operation requires permission for the

iam:PassRole
action for the IAM role. It also requires permission for the
lambda:AddEventSource
action.

Namespace: Amazon.Lambda
Assembly: AWSSDK.dll
Version: 0.0.3.0

Syntax

C#
public virtual AddEventSourceResponse AddEventSource(
         AddEventSourceRequest request
)

Parameters

request
Type: Amazon.Lambda.Model.AddEventSourceRequest

Container for the necessary parameters to execute the AddEventSource service method.

Return Value
Type: Amazon.Lambda.Model.AddEventSourceResponse
The response from the AddEventSource service method, as returned by Lambda.

Exceptions

Exception Condition
InvalidParameterValueException One of the parameters in the request is invalid. For example, if you provided an IAM role for AWS Lambda to assume in the UploadFunction or the UpdateFunctionConfiguration API, that AWS Lambda is unable to assume you will get this exception.
ServiceException The AWS Lambda service encountered an internal error.

Version Information

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