Skip to content

Commit afaf573

Browse files
leandrodamascenasinofseven
authored andcommitted
docs(api): migrating the jmespath utility to mkdocstrings (aws-powertools#6006)
Mkdocstrings - JMESPath module
1 parent d6eccc7 commit afaf573

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

aws_lambda_powertools/utilities/jmespath_utils/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
Built-in JMESPath Functions to easily deserialize common encoded JSON payloads in Lambda functions.
3+
!!! abstract "Usage Documentation"
4+
[`JMESPath Functions`](../utilities/jmespath_functions.md)
5+
"""
16
from __future__ import annotations
27

38
import base64
@@ -42,7 +47,7 @@ def query(data: dict | str, envelope: str, jmespath_options: dict | None = None)
4247
4348
Built-in JMESPath functions include: powertools_json, powertools_base64, powertools_base64_gzip
4449
45-
Examples
50+
Example
4651
--------
4752
4853
**Deserialize JSON string and extracts data from body key**

aws_lambda_powertools/utilities/parameters/base.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
22
Base for Parameter providers
3+
!!! abstract "Usage Documentation"
4+
[`Parameters`](../utilities/parameters.md)
35
"""
46

57
from __future__ import annotations

docs/api_doc/jmespath_functions.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- markdownlint-disable MD043 MD041 -->
2+
::: aws_lambda_powertools.utilities.jmespath_utils

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ nav:
6363
# - Casual to regular contributor: contributing/tracks/casual_regular_contributor.md
6464
# - Customer to advocate: contributing/tracks/customer_advocate.md
6565
- API Documentation:
66+
- JMESPath Functions: api_doc/jmespath_functions.md
6667
- Parameters:
6768
- Base: api_doc/parameters/base.md
6869
- AppConfig: api_doc/parameters/appconfig.md

0 commit comments

Comments
 (0)