Skip to content

Commit 7b06ac9

Browse files
Merge branch 'develop' into feat/buffer-log
2 parents 27b1ce9 + af5e6be commit 7b06ac9

File tree

25 files changed

+393
-256
lines changed

25 files changed

+393
-256
lines changed

.github/workflows/bootstrap_region.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,11 @@ jobs:
7575
strategy:
7676
matrix:
7777
layer:
78-
- AWSLambdaPowertoolsPythonV3-python38-arm64
7978
- AWSLambdaPowertoolsPythonV3-python39-arm64
8079
- AWSLambdaPowertoolsPythonV3-python310-arm64
8180
- AWSLambdaPowertoolsPythonV3-python311-arm64
8281
- AWSLambdaPowertoolsPythonV3-python312-arm64
8382
- AWSLambdaPowertoolsPythonV3-python313-arm64
84-
- AWSLambdaPowertoolsPythonV3-python38-x86_64
8583
- AWSLambdaPowertoolsPythonV3-python39-x86_64
8684
- AWSLambdaPowertoolsPythonV3-python310-x86_64
8785
- AWSLambdaPowertoolsPythonV3-python311-x86_64

.github/workflows/layer_rename.yml

Lines changed: 0 additions & 163 deletions
This file was deleted.

.github/workflows/reusable_deploy_v3_layer_stack.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ jobs:
7474
# aws ec2 describe-regions --all-regions --query "Regions[].RegionName" --output text | tr "\t" "\n" | sort
7575
region: ["af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3",
7676
"ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3",
77-
"ap-southeast-4", "ap-southeast-5", "ca-central-1", "ca-west-1", "eu-central-1", "eu-central-2",
77+
"ap-southeast-4", "ap-southeast-5", "ap-southeast-7", "ca-central-1", "ca-west-1", "eu-central-1", "eu-central-2",
7878
"eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3",
79-
"il-central-1", "me-central-1", "me-south-1", "sa-east-1", "us-east-1",
79+
"il-central-1", "me-central-1", "me-south-1", "mx-central-1", "sa-east-1", "us-east-1",
8080
"us-east-2", "us-west-1", "us-west-2"]
8181
python-version: ["3.9","3.10","3.11","3.12","3.13"]
8282
include:
@@ -104,6 +104,8 @@ jobs:
104104
has_arm64_support: "true"
105105
- region: "ap-southeast-5"
106106
has_arm64_support: "true"
107+
- region: "ap-southeast-7"
108+
has_arm64_support: "true"
107109
- region: "ca-central-1"
108110
has_arm64_support: "true"
109111
- region: "ca-west-1"
@@ -130,6 +132,8 @@ jobs:
130132
has_arm64_support: "true"
131133
- region: "me-south-1"
132134
has_arm64_support: "true"
135+
- region: "mx-central-1"
136+
has_arm64_support: "true"
133137
- region: "sa-east-1"
134138
has_arm64_support: "true"
135139
- region: "us-east-1"

.github/workflows/update_ssm.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ run-name: SSM Parameters - Python
1313
# A successful parameter would look similar to:
1414
# /aws/service/powertools/python/arm64/python3.13/3.1.0
1515
# And will have a value of:
16-
# arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python38-arm64:4
16+
# arn:aws:lambda:eu-west-1:017000801446:layer:AWSLambdaPowertoolsPythonV3-python313-arm64:4
1717

1818
on:
1919
workflow_dispatch:
@@ -51,12 +51,11 @@ jobs:
5151
strategy:
5252
matrix:
5353
region: ["af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3",
54-
"ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3",
55-
"ap-southeast-4", "ca-central-1", "ca-west-1", "eu-central-1", "eu-central-2",
56-
"eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3",
57-
"il-central-1", "me-central-1", "me-south-1", "sa-east-1", "us-east-1",
58-
"us-east-2", "us-west-1", "us-west-2", "ap-southeast-5"
59-
]
54+
"ap-south-1", "ap-south-2", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3",
55+
"ap-southeast-4", "ap-southeast-5", "ap-southeast-7", "ca-central-1", "ca-west-1", "eu-central-1", "eu-central-2",
56+
"eu-north-1", "eu-south-1", "eu-south-2", "eu-west-1", "eu-west-2", "eu-west-3",
57+
"il-central-1", "me-central-1", "me-south-1", "mx-central-1", "sa-east-1", "us-east-1",
58+
"us-east-2", "us-west-1", "us-west-2"]
6059

6160
permissions:
6261
contents: read

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,19 @@
1515
## Maintenance
1616

1717
* **ci:** new pre-release 3.6.1a0 ([#6084](https://github.com/aws-powertools/powertools-lambda-python/issues/6084))
18+
* **ci:** new pre-release 3.6.1a2 ([#6098](https://github.com/aws-powertools/powertools-lambda-python/issues/6098))
19+
* **ci:** new pre-release 3.6.1a1 ([#6090](https://github.com/aws-powertools/powertools-lambda-python/issues/6090))
20+
* **ci:** new pre-release 3.6.1a3 ([#6107](https://github.com/aws-powertools/powertools-lambda-python/issues/6107))
21+
* **deps:** bump squidfunk/mkdocs-material from `c62453b` to `f5bcec4` in /docs ([#6087](https://github.com/aws-powertools/powertools-lambda-python/issues/6087))
1822
* **deps:** bump aws-actions/configure-aws-credentials from 4.0.3 to 4.1.0 ([#6082](https://github.com/aws-powertools/powertools-lambda-python/issues/6082))
23+
* **deps-dev:** bump boto3-stubs from 1.36.17 to 1.36.19 ([#6093](https://github.com/aws-powertools/powertools-lambda-python/issues/6093))
24+
* **deps-dev:** bump aws-cdk from 2.178.1 to 2.178.2 ([#6089](https://github.com/aws-powertools/powertools-lambda-python/issues/6089))
25+
* **deps-dev:** bump aws-cdk-aws-lambda-python-alpha from 2.178.1a0 to 2.178.2a0 ([#6095](https://github.com/aws-powertools/powertools-lambda-python/issues/6095))
1926
* **deps-dev:** bump coverage from 7.6.11 to 7.6.12 ([#6080](https://github.com/aws-powertools/powertools-lambda-python/issues/6080))
2027
* **deps-dev:** bump mkdocstrings-python from 1.14.6 to 1.15.0 ([#6079](https://github.com/aws-powertools/powertools-lambda-python/issues/6079))
2128
* **deps-dev:** bump boto3-stubs from 1.36.16 to 1.36.17 ([#6078](https://github.com/aws-powertools/powertools-lambda-python/issues/6078))
29+
* **deps-dev:** bump sentry-sdk from 2.20.0 to 2.21.0 ([#6096](https://github.com/aws-powertools/powertools-lambda-python/issues/6096))
30+
* **deps-dev:** bump mkdocs-material from 9.6.3 to 9.6.4 ([#6097](https://github.com/aws-powertools/powertools-lambda-python/issues/6097))
2231

2332

2433
<a name="v3.6.0"></a>

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,7 @@ def _get_openapi_path(
552552
operation_responses: dict[int, OpenAPIResponse] = {
553553
422: {
554554
"description": "Validation Error",
555-
"content": {
556-
"application/json": {
557-
"schema": {"$ref": COMPONENT_REF_PREFIX + "HTTPValidationError"},
558-
},
559-
},
555+
"content": {"application/json": {"schema": {"$ref": f"{COMPONENT_REF_PREFIX}HTTPValidationError"}}},
560556
},
561557
}
562558

@@ -761,6 +757,9 @@ def _openapi_operation_parameters(
761757
if field_info.description:
762758
parameter["description"] = field_info.description
763759

760+
if field_info.openapi_examples:
761+
parameter["examples"] = field_info.openapi_examples
762+
764763
if field_info.deprecated:
765764
parameter["deprecated"] = field_info.deprecated
766765

aws_lambda_powertools/event_handler/openapi/params.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
)
2121

2222
if TYPE_CHECKING:
23+
from aws_lambda_powertools.event_handler.openapi.models import Example
2324
from aws_lambda_powertools.event_handler.openapi.types import CacheKey
2425

2526
"""
@@ -117,6 +118,7 @@ def __init__(
117118
max_digits: int | None = _Unset,
118119
decimal_places: int | None = _Unset,
119120
examples: list[Any] | None = None,
121+
openapi_examples: dict[str, Example] | None = None,
120122
deprecated: bool | None = None,
121123
include_in_schema: bool = True,
122124
json_schema_extra: dict[str, Any] | None = None,
@@ -205,8 +207,13 @@ def __init__(
205207
if examples is not None:
206208
kwargs["examples"] = examples
207209

210+
if openapi_examples is not None:
211+
kwargs["openapi_examples"] = openapi_examples
212+
208213
current_json_schema_extra = json_schema_extra or extra
209214

215+
self.openapi_examples = openapi_examples
216+
210217
kwargs.update(
211218
{
212219
"annotation": annotation,
@@ -262,6 +269,7 @@ def __init__(
262269
max_digits: int | None = _Unset,
263270
decimal_places: int | None = _Unset,
264271
examples: list[Any] | None = None,
272+
openapi_examples: dict[str, Example] | None = None,
265273
deprecated: bool | None = None,
266274
include_in_schema: bool = True,
267275
json_schema_extra: dict[str, Any] | None = None,
@@ -353,6 +361,7 @@ def __init__(
353361
decimal_places=decimal_places,
354362
deprecated=deprecated,
355363
examples=examples,
364+
openapi_examples=openapi_examples,
356365
include_in_schema=include_in_schema,
357366
json_schema_extra=json_schema_extra,
358367
**extra,
@@ -392,6 +401,7 @@ def __init__(
392401
max_digits: int | None = _Unset,
393402
decimal_places: int | None = _Unset,
394403
examples: list[Any] | None = None,
404+
openapi_examples: dict[str, Example] | None = None,
395405
deprecated: bool | None = None,
396406
include_in_schema: bool = True,
397407
json_schema_extra: dict[str, Any] | None = None,
@@ -480,6 +490,7 @@ def __init__(
480490
decimal_places=decimal_places,
481491
deprecated=deprecated,
482492
examples=examples,
493+
openapi_examples=openapi_examples,
483494
include_in_schema=include_in_schema,
484495
json_schema_extra=json_schema_extra,
485496
**extra,
@@ -522,6 +533,7 @@ def __init__(
522533
max_digits: int | None = _Unset,
523534
decimal_places: int | None = _Unset,
524535
examples: list[Any] | None = None,
536+
openapi_examples: dict[str, Example] | None = None,
525537
deprecated: bool | None = None,
526538
include_in_schema: bool = True,
527539
json_schema_extra: dict[str, Any] | None = None,
@@ -616,6 +628,7 @@ def __init__(
616628
decimal_places=decimal_places,
617629
deprecated=deprecated,
618630
examples=examples,
631+
openapi_examples=openapi_examples,
619632
include_in_schema=include_in_schema,
620633
json_schema_extra=json_schema_extra,
621634
**extra,
@@ -669,6 +682,7 @@ def __init__(
669682
max_digits: int | None = _Unset,
670683
decimal_places: int | None = _Unset,
671684
examples: list[Any] | None = None,
685+
openapi_examples: dict[str, Example] | None = None,
672686
deprecated: bool | None = None,
673687
include_in_schema: bool = True,
674688
json_schema_extra: dict[str, Any] | None = None,

aws_lambda_powertools/logging/exceptions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ class InvalidLoggerSamplingRateError(Exception):
44
"""
55

66
pass
7+
8+
9+
class OrphanedChildLoggerError(Exception):
10+
"""
11+
Orphaned Child logger exception
12+
"""
13+
14+
pass

0 commit comments

Comments
 (0)