aws-lambda-0.1.0.1: Haskell bindings for AWS Lambda

Safe HaskellNone
LanguageHaskell2010

Aws.Lambda.Commands.AddEventSource

Contents

Synopsis

Request

data AddEventSource Source

Identifies a stream as an event source for an AWS Lambda function. It can be either an Amazon Kinesis stream or a Amazon DynamoDB stream. AWS Lambda invokes the specified function when records are posted to the stream. This is the pull model, where AWS Lambda invokes the function.

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.

Each event source, such as a Kinesis stream, can only be associated with one AWS Lambda function. If you call AddEventSource for an event source that is already mapped to another AWS Lambda function, the existing mapping is updated to call the new function instead of the old one.

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

Constructors

AddEventSource 

Fields

_aesBatchSize :: !(Maybe Integer)

The largest number of records that AWS Lambda will give to your function in a single event. The default is 100 records.

_aesEventSource :: !Arn

The Amazon Resource Name (ARN) of the Amazon Kinesis stream that is the event source. Any record added to this stream causes AWS Lambda to invoke your Lambda function. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.

_aesFunctionName :: !Text

The Lambda function to invoke when AWS Lambda detects an event on the stream.

_aesParameters :: !(Maybe EventSourceParameters)
 
_aesRole :: !Text

The ARN of the IAM role (invocation role) that AWS Lambda can assume to read from the stream and invoke the function.

Lenses

Response

Lenses