powertools-lambda-typescript
powertools-lambda-typescript copied to clipboard
Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
### Use case I need to parse the actual structure of an APIGatewayProxyEventV2Schema's requestContext.authorizer.lambda key (for both typing and validation reasons) ### Solution/User Experience Export the APIGatewayV2RequestAuthorizer & APIGatewayV2RequestContext schemas...
### Use case The Idempotency utility currently supports only [DynamoDB as persistence layer](https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/idempotency/#persistence-layers). With AWS [announcing Amazon ElastiCache for Valkey](https://aws.amazon.com/about-aws/whats-new/2024/10/amazon-elasticache-valkey/), we would like to understand if there's demand for the...
### Use case It would be helpful to have a helper function to validate that required environment variables are present and not empty. This is a common use case when...
### Use case I am working with a FIFO SQS queue that requires processing batch records in an asynchronous manner. However, to maintain the order of messages, the `SqsFifoPartialProcessor` currently...
### Use case I've setup a cron job to log daily costs from cost explorer to cloudwatch metrics (i.e. looking at the previous day's data for each invocation). I realised...
## Summary ### Changes Small typo in docs: `captureHTTPSRequests` => `captureHTTPsRequests` --- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under...
## Summary ### Changes > Please provide a summary of what's being changed This PR adds the ability to pass a custom logger object to the Metrics utility. This is...
### Use case When using the Parser with the `safeParse` option enabled, the result is a `ParsedResult` type that can contain either the parsed payload or an error depending on...
### Use case We use Tracers functionality to capture class methods using decorators as described in the [docs](https://docs.powertools.aws.dev/lambda/typescript/latest/core/tracer/#decorator_1). [Typescript 5.0+ has official (non experimental) support for decorators](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators). However as soon...
## Summary ### Changes > Please provide a summary of what's being changed This PR adds tests to ensure that Protobuf payloads with magic numbers are processed correctly. It also...