Closed
Description
Summary
The AWS SDK v2 allows to add user agent headers to the requests made using its clients.
Why is this needed?
So that AWS can attribute requests made to its API when using Powertools.
Which area does this relate to?
Governance
Solution
Expose a shared function (in core module) that takes a client and adds Powertools-related user agents to the request. This shared function can then be used by other Powertools utilities that make requests to AWS APIs. Check SDK documentation and typescript implementation (and usage).
Impacted modules:
- tracing (X-ray)
- parameters (SSM Parameters, Secrets Manager, DynamoDB, AppConfig)
- idempotency (DynamoDB)
- sqs (SQS)
Acknowledgment
- This request meets Powertools for AWS Lambda (Java) Tenets
- Should this be considered in other Powertools for AWS Lambda (Java) languages? i.e. Python, TypeScript
Metadata
Metadata
Assignees
Type
Projects
Status
Shipped