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
Copy file name to clipboardExpand all lines: Examples/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ This directory contains example code for Lambda functions.
36
36
37
37
-**[Streaming](Streaming/README.md)**: create a Lambda function exposed as an URL. The Lambda function streams its response over time. (requires [AWS SAM](https://aws.amazon.com/serverless/sam/)).
38
38
39
-
-**[StreamingFromEvent](StreamingFromEvent/README.md)**: a Lambda function that combines JSON input decoding with response streaming capabilities, demonstrating the new streaming codable interface (requires [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)).
39
+
-**[StreamingFromEvent](StreamingFromEvent/README.md)**: a Lambda function that combines JSON input decoding with response streaming capabilities, demonstrating the new streaming codable interface (requires [AWS SAM](https://aws.amazon.com/serverless/sam/) or the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)).
40
40
41
41
-**[Testing](Testing/README.md)**: a test suite for Lambda functions.
Copy file name to clipboardExpand all lines: Examples/StreamingFromEvent/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Where:
36
36
-`message`: The message content to repeat
37
37
-`delayMs`: Optional delay between messages in milliseconds (defaults to 500ms)
38
38
39
-
The response is streamed through the `LambdaResponseStreamWriter`, which is passed as an argument in the `handle` function. The code calls the `write(_:)` function of the `LambdaResponseStreamWriter` with partial data repeatedly written before finally closing the response stream by calling `finish()`. Developers can also choose to return the entire output and not stream the response by calling `writeAndFinish(_:)`.
39
+
The response is streamed through the `LambdaResponseStreamWriter`, which is passed as an argument in the `handle` function. The code calls the `write(_:)` function of the `LambdaResponseStreamWriter` with partial data written repeatedly before finally closing the response stream by calling `finish()`. Developers can also choose to return the entire output and not stream the response by calling `writeAndFinish(_:)`.
40
40
41
41
An error is thrown if `finish()` is called multiple times or if it is called after having called `writeAndFinish(_:)`.
42
42
@@ -111,7 +111,7 @@ The `--architectures` flag is only required when you build the binary on an Appl
111
111
112
112
Be sure to set `AWS_ACCOUNT_ID` with your actual AWS account ID (for example: 012345678901).
113
113
114
-
### Step2: Give permission to invoke that function through an URL
114
+
### Step 2: Give permission to invoke that function through a URL
115
115
116
116
Anyone with a valid signature from your AWS account will have permission to invoke the function through its URL.
117
117
@@ -124,7 +124,7 @@ aws lambda add-permission \
124
124
--statement-id allowURL
125
125
```
126
126
127
-
### Step3: Create the URL
127
+
### Step 3: Create the URL
128
128
129
129
This creates [a URL with IAM authentication](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html). Only calls with a valid signature will be authorized.
0 commit comments