Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/utilities/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ The Metadata utility allows you to fetch data from the [AWS Lambda Metadata Endp

You can fetch data from the Lambda Metadata Endpoint using the `get_lambda_metadata` function.

Import it from `aws_lambda_powertools.utilities.metadata` (the public package path):

```python
from aws_lambda_powertools.utilities.metadata import get_lambda_metadata
```

???+ warning "Import path is `utilities.metadata`"
The correct module path is `aws_lambda_powertools.utilities.metadata`.

Do **not** import from `aws_lambda_powertools.utilities.lambda_metadata` — that path is not part of the public API (even though the implementation file and `get_lambda_metadata` helper share a similar name).

???+ tip
Metadata is cached for the duration of the Lambda sandbox, so subsequent calls to `get_lambda_metadata` will return the cached data.

Expand Down