You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Identifies a poll\-based event source for a Lambda function\.It can be either an Amazon Kinesis or DynamoDB stream\. AWS Lambda invokes the specified function when records are posted to the event source\.
3
+
Creates a mapping between an event source and an AWS Lambda function\.Lambda reads items from the event source and triggers the function\.
4
4
5
-
This association between a poll\-based source and a Lambda function is called the event source mapping\.
6
-
7
-
You provide mapping information \(for example, which stream or SQS queue to read from and which Lambda function to invoke\) in the request body\.
8
-
9
-
Amazon Kinesis or DynamoDB stream event sources can be associated with multiple AWS Lambda functions and a given Lambda function can be associated with multiple AWS event sources\. For Amazon SQS, you can configure multiple queues as event sources for a single Lambda function, but an SQS queue can be mapped only to a single Lambda function\.
10
-
11
-
You can configure an SQS queue in an account separate from your Lambda function's account\. Also the queue needs to reside in the same AWS region as your function\.
12
-
13
-
If you are using versioning, you can specify a specific function version or an alias via the function name parameter\. For more information about versioning, see [AWS Lambda Function Versioning and Aliases](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)\.
14
-
15
-
This operation requires permission for the `lambda:CreateEventSourceMapping` action\.
5
+
For details about each event source type, see the following topics\.
6
+
+[Using AWS Lambda with Amazon Kinesis](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html)
7
+
+[Using AWS Lambda with Amazon SQS](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html)
8
+
+[Using AWS Lambda with Amazon DynamoDB](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html)
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 for Amazon Kinesis and Amazon DynamoDB is 100 records\. Both the default and maximum for Amazon SQS are 10 messages\.
35
+
The maximum number of items to retrieve in a single batch\.
36
+
+**Amazon Kinesis**\- Default 100\. Max 10,000\.
37
+
+**Amazon DynamoDB Streams**\- Default 100\. Max 1,000\.
38
+
+**Amazon Simple Queue Service**\- Default 10\. Max 10\.
43
39
Type: Integer
44
40
Valid Range: Minimum value of 1\. Maximum value of 10000\.
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading\.For more information, see [GetShardIterator](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) in the *Amazon Kinesis API Reference Guide* or [GetShardIterator](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) in the *Amazon DynamoDB API Reference Guide*\.The `AT_TIMESTAMP`value is supported only for [Kinesis streams](https://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html)\.
72
+
The position in a stream from which to start reading\.Required for Amazon Kinesis and Amazon DynamoDB Streams sources\.`AT_TIMESTAMP` is only supported for Amazon Kinesis streams\.
The timestamp of the data record from which to start reading\. Used with [shard iterator type](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) AT\_TIMESTAMP\. If a record with this exact timestamp does not exist, the iterator returned is for the next \(later\) record\. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record \(TRIM\_HORIZON\)\. Valid only for [Kinesis streams](https://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html)\.
78
+
With `StartingPosition` set to `AT_TIMESTAMP`, the Unix time in seconds from which to start reading\.
80
79
Type: Timestamp
81
80
Required: No
82
81
@@ -105,38 +104,38 @@ If the action is successful, the service sends back an HTTP 202 response\.
105
104
The following data is returned in JSON format by the service\.
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\.
107
+
The maximum number of items to retrieve in a single batch\.
109
108
Type: Integer
110
109
Valid Range: Minimum value of 1\. Maximum value of 10000\.
The state of the event source mapping\. It can be `Creating`, `Enabled`, `Disabled`, `Enabling`, `Disabling`, `Updating`, or `Deleting`\.
130
+
The state of the event source mapping\. It can be one of the following: `Creating`, `Enabling`, `Enabled`, `Disabling`, `Disabled`, `Updating`, or `Deleting`\.
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\.
47
+
The maximum number of items to retrieve in a single batch\.
50
48
Type: Integer
51
49
Valid Range: Minimum value of 1\. Maximum value of 10000\.
The state of the event source mapping\. It can be `Creating`, `Enabled`, `Disabled`, `Enabling`, `Disabling`, `Updating`, or `Deleting`\.
70
+
The state of the event source mapping\. It can be one of the following: `Creating`, `Enabling`, `Enabled`, `Disabling`, `Disabled`, `Updating`, or `Deleting`\.
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\.
8
+
The maximum number of items to retrieve in a single batch\.
9
9
Type: Integer
10
10
Valid Range: Minimum value of 1\. Maximum value of 10000\.
The state of the event source mapping\. It can be `Creating`, `Enabled`, `Disabled`, `Enabling`, `Disabling`, `Updating`, or `Deleting`\.
36
+
The state of the event source mapping\. It can be one of the following: `Creating`, `Enabling`, `Enabled`, `Disabling`, `Disabled`, `Updating`, or `Deleting`\.
0 commit comments