Skip to content

Commit 3c22cf7

Browse files
committed
various small updates and corrections
1 parent 9db7991 commit 3c22cf7

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

doc_source/API_CreateEventSourceMapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Type: [DestinationConfig](API_DestinationConfig.md) object
7171
Required: No
7272

7373
** [Enabled](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-Enabled"></a>
74-
Disables the event source mapping to pause polling and invocation\.
74+
If true, the event source mapping is active\. Set to false to pause polling and invocation\.
7575
Type: Boolean
7676
Required: No
7777

doc_source/API_UpdateEventSourceMapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Type: [DestinationConfig](API_DestinationConfig.md) object
6767
Required: No
6868

6969
** [Enabled](#API_UpdateEventSourceMapping_RequestSyntax) ** <a name="SSS-UpdateEventSourceMapping-request-Enabled"></a>
70-
Disables the event source mapping to pause polling and invocation\.
70+
If true, the event source mapping is active\. Set to false to pause polling and invocation\.
7171
Type: Boolean
7272
Required: No
7373

doc_source/csharp-handler.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public class ProductService{
9090
}
9191
```
9292

93+
**Note**
94+
If you are using \.NET Core 3\.1, we recommend that you use the [ Amazon\.Lambda\.Serialization\.SystemTextJson](https://github.com/aws/aws-lambda-dotnet/tree/0eff7ab687bbfc1e026feee1de336849e0315bc6/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson) serializer\. This package provides a performance improvement over `Amazon.Lambda.Serialization.Json`\.
95+
9396
## Handler signatures<a name="csharp-handler-signatures"></a>
9497

9598
When creating Lambda functions, you have to provide a handler string that tells AWS Lambda where to look for the code to invoke\. In C\#, the format is:
@@ -127,6 +130,8 @@ If the method specified in your handler string is overloaded, you must provide t
127130

128131
For any Lambda functions that use input or output types other than a `Stream` object, you will need to add a serialization library to your application\. You can do this in the following ways:
129132
+ Use the `Amazon.Lambda.Serialization.Json` NuGet package\. This library uses JSON\.NET to handle serialization\.
133+
**Note**
134+
If you are using \.NET Core 3\.1, we recommend that you use the [ Amazon\.Lambda\.Serialization\.SystemTextJson](https://github.com/aws/aws-lambda-dotnet/tree/0eff7ab687bbfc1e026feee1de336849e0315bc6/Libraries/src/Amazon.Lambda.Serialization.SystemTextJson) serializer\. This package provides a performance improvement over `Amazon.Lambda.Serialization.Json`\.
130135
+ Create your own serialization library by implementing the `ILambdaSerializer` interface, which is available as part of the `Amazon.Lambda.Core` library\. The interface defines two methods:
131136
+ `T Deserialize<T>(Stream requestStream);`
132137

doc_source/python-logging.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ To output logs from your function code, you can use [the `print` method](https:/
77
**Example lambda\_function\.py**
88

99
```
10-
import json
1110
import os
1211
1312
def lambda_handler(event, context):
@@ -154,7 +153,6 @@ Log groups aren't deleted automatically when you delete a function\. To avoid st
154153
For more detailed logs, use the [logging library](https://docs.python.org/3/library/logging.html)\.
155154

156155
```
157-
import json
158156
import os
159157
import logging
160158
logger = logging.getLogger()

doc_source/with-ddb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Lambda supports the following options for DynamoDB event sources\.
137137
+ **Maximum age of record** – The maximum age of a record that Lambda sends to your function\.
138138
+ **Split batch on error** – When the function returns an error, split the batch into two before retrying\.
139139
+ **Concurrent batches per shard** – Process multiple batches from the same shard concurrently\.
140-
+ **Enabled**Disable the event source to stop processing records\. Lambda keeps track of the last record processed and resumes processing from that point when the mapping is reenabled\.
140+
+ **Enabled**Set to true to enable the event source mapping\. Set to false to stop processing records\. Lambda keeps track of the last record processed and resumes processing from that point when the mapping is reenabled\.
141141

142142
**Note**
143143
DynamoDB charges for read requests that Lambda makes to get records from the stream\. For pricing details, see [Amazon DynamoDB pricing](https://aws.amazon.com/dynamodb/pricing)\.

doc_source/with-kinesis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ You can also increase concurrency by processing multiple batches from each shard
6969

7070
## Configuring your data stream and function<a name="services-kinesis-configure"></a>
7171

72-
Your Lambda function is a consumer application for your data stream\. It processes one batch of records at a time from each shard\. You can map a Lambda function to a data stream \(standard iterator\), or to a consumer of a stream \([enhanced fan\-out](https://docs.aws.amazon.com/kinesis/latest/dev/introduction-to-enhanced-consumers.html)\)\.
72+
Your Lambda function is a consumer application for your data stream\. It processes one batch of records at a time from each shard\. You can map a Lambda function to a data stream \(standard iterator\), or to a consumer of a stream \([enhanced fan\-out](https://docs.aws.amazon.com/kinesis/latest/dev/enhanced-consumers.html)\)\.
7373

7474
For standard iterators, Lambda polls each shard in your Kinesis stream for records at a base rate of once per second\. When more records are available, Lambda keeps processing batches until the function catches up with the stream\. The event source mapping shares read throughput with other consumers of the shard\.
7575

@@ -147,7 +147,7 @@ Lambda supports the following options for Kinesis event sources\.
147147
+ **Maximum age of record** – The maximum age of a record that Lambda sends to your function\.
148148
+ **Split batch on error** – When the function returns an error, split the batch into two before retrying\.
149149
+ **Concurrent batches per shard** – Process multiple batches from the same shard concurrently\.
150-
+ **Enabled**Disable the event source to stop processing records\. Lambda keeps track of the last record processed and resumes processing from that point when it's reenabled\.
150+
+ **Enabled**Set to true to enable the event source mapping\. Set to false to stop processing records\. Lambda keeps track of the last record processed and resumes processing from that point when it's reenabled\.
151151

152152
**Note**
153153
Kinesis charges for each shard and, for enhanced fan\-out, data read from the stream\. For pricing details, see [Amazon Kinesis pricing](https://aws.amazon.com/kinesis/data-streams/pricing)\.

doc_source/with-sqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Lambda supports the following options for Amazon SQS event sources\.
130130
**Event source options**
131131
+ **SQS queue** – The Amazon SQS queue to read records from\.
132132
+ **Batch size** – The number of items to read from the queue in each batch, up to 10\. The event might contain fewer items if the batch that Lambda read from the queue had fewer items\.
133-
+ **Enabled**Disable the event source to stop processing items\.
133+
+ **Enabled**Set to true to enable the event source mapping\. Set to false to stop processing records\.
134134

135135
**Note**
136136
Amazon SQS has a perpetual free tier for requests\. Beyond the free tier, Amazon SQS charges per million requests\. While your event source mapping is active, Lambda makes requests to the queue to get items\. For pricing details, see [Amazon Simple Queue Service pricing](https://aws.amazon.com/sqs/pricing)\.

0 commit comments

Comments
 (0)