AWSLambdaCreateEventSourceMappingRequest Class Reference

Inherits from AWSRequest : AWSModel : AWSMTLModel
Declared in AWSLambdaModel.h
AWSLambdaModel.m

Overview

Required parameters: [EventSourceArn, FunctionName, StartingPosition]

  batchSize

The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default is 100 records.

@property (nonatomic, strong) NSNumber *batchSize

Declared In

AWSLambdaModel.h

  enabled

Indicates whether AWS Lambda should begin polling the event source. By default, Enabled is true.

@property (nonatomic, strong) NSNumber *enabled

Declared In

AWSLambdaModel.h

  eventSourceArn

The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.

@property (nonatomic, strong) NSString *eventSourceArn

Declared In

AWSLambdaModel.h

  functionName

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

You can specify the function name (for example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).

If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases

AWS Lambda also allows you to specify only the function name with the account ID qualifier (for example, account-id:Thumbnail).

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

@property (nonatomic, strong) NSString *functionName

Declared In

AWSLambdaModel.h

  startingPosition

The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.

@property (nonatomic, assign) AWSLambdaEventSourcePosition startingPosition

Declared In

AWSLambdaModel.h