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
??? note "Click to expand and copy code snippets for popular frameworks"
73
-
73
+
74
74
=== "SAM"
75
75
76
76
```yaml hl_lines="5"
@@ -252,7 +252,7 @@ You can include Powertools for AWS Lambda (TypeScript) Lambda Layer using [AWS L
252
252
!!! info "Using Powertools for AWS Lambda (TypeScript) via Lambda Layer? Simply add the Powertools for AWS Lambda (TypeScript) utilities you are using as a development dependency"
253
253
254
254
??? question "Want to inspect the contents of the Layer?"
255
-
Change {region} to your AWS region, e.g. `eu-west-1`
255
+
Change {region} to your AWS region, e.g. `eu-west-1`
@@ -262,7 +262,7 @@ You can include Powertools for AWS Lambda (TypeScript) Lambda Layer using [AWS L
262
262
263
263
## Instrumentation
264
264
265
-
You can instrument your code with Powertools for AWS Lambda (TypeScript) in three different ways:
265
+
You can instrument your code with Powertools for AWS Lambda (TypeScript) in three different ways:
266
266
267
267
***Middy** middleware. It is the best choice if your existing code base relies on the [Middy 4.x](https://middy.js.org/docs/) middleware engine. Powertools for AWS Lambda (TypeScript) offers compatible Middy middleware to make this integration seamless.
268
268
***Method decorator**. Use [TypeScript method decorators](https://www.typescriptlang.org/docs/handbook/decorators.html#method-decorators) if you prefer writing your business logic using [TypeScript Classes](https://www.typescriptlang.org/docs/handbook/classes.html). If you aren’t using Classes, this requires the most significant refactoring.
@@ -289,11 +289,12 @@ Core utilities such as Tracing, Logging, and Metrics will be available across al
289
289
|[Parameters](./utilities/parameters.md)| High-level functions to retrieve one or more parameters from AWS SSM Parameter Store, AWS Secrets Manager, AWS AppConfig, and Amazon DynamoDB |
290
290
|[Idempotency](./utilities/idempotency.md)| Class method decorator, Middy middleware, and function wrapper to make your Lambda functions idempotent and prevent duplicate execution based on payload content. |
291
291
|[Batch Processing](./utilities/batch.md)| Utility to handle partial failures when processing batches from Amazon SQS, Amazon Kinesis Data Streams, and Amazon DynamoDB Streams. |
292
+
|[Parser](./utilities/parser.md)| Utility to parse and validate AWS Lambda event payloads using Zod, a TypeScript-first schema declaration and validation library. |
292
293
293
294
## Environment variables
294
295
295
296
???+ info
296
-
Explicit parameters take precedence over environment variables
297
+
Explicit parameters take precedence over environment variables
@@ -351,4 +352,4 @@ These are our core principles to guide our decision making.
351
352
***We strive for backwards compatibility**. New features and changes should keep backwards compatibility. If a breaking change cannot be avoided, the deprecation and migration process should be clearly defined.
352
353
***We work backwards from the community**. We aim to strike a balance of what would work best for 80% of customers. Emerging practices are considered and discussed via Requests for Comment (RFCs)
353
354
***Progressive**. Utilities are designed to be incrementally adoptable for customers at any stage of their Serverless journey. They follow language idioms and their community’s common practices.
0 commit comments