Skip to content

Commit a7da20c

Browse files
authored
Merge pull request #3723 from aws/release-v1.95.0
Release 1.95.0 (to main)
2 parents b545b94 + d8979c1 commit a7da20c

31 files changed

+5168
-2221
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ updates:
1010
include: scope
1111
reviewers:
1212
- aws/sae-enterprise
13+
- aws/aws-lambda-tooling
1314
open-pull-requests-limit: 10

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
22

33
* @aws/sae-enterprise
4+
* @aws/aws-lambda-tooling

integration/resources/templates/combination/function_with_alias_all_properties_and_layer_version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Resources:
44
Properties:
55
CodeUri: ${codeuri}
66
Handler: index.handler
7-
Runtime: nodejs20.x
7+
Runtime: nodejs18.x
88
AutoPublishAlias: Live
99
AutoPublishAliasAllProperties: true
1010
Layers:

samtranslator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.94.0"
1+
__version__ = "1.95.0"

samtranslator/compat.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
try:
22
from pydantic import v1 as pydantic
3+
4+
# Starting Pydantic v1.10.17, pydantic import v1 will success,
5+
# adding the following line to make Pydantic v1 should fall back to v1 import correctly.
6+
pydantic.error_wrappers.ValidationError # noqa
37
except ImportError:
48
# Unfortunately mypy cannot handle this try/expect pattern, and "type: ignore"
59
# is the simplest work-around. See: https://github.com/python/mypy/issues/1153
610
import pydantic # type: ignore
11+
except AttributeError:
12+
# Pydantic v1.10.17+
13+
import pydantic # type: ignore
714

815
__all__ = ["pydantic"]

samtranslator/internal/schema_source/aws_serverless_api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ class LambdaRequestAuthorizerIdentity(BaseModel):
7777

7878

7979
class LambdaTokenAuthorizer(BaseModel):
80-
AuthorizationScopes: Optional[List[str]] = lambdatokenauthorizer("AuthorizationScopes")
8180
FunctionArn: SamIntrinsicable[str] = lambdatokenauthorizer("FunctionArn")
8281
FunctionInvokeRole: Optional[str] = lambdatokenauthorizer("FunctionInvokeRole")
8382
FunctionPayloadType: Optional[Literal["TOKEN"]] = lambdatokenauthorizer("FunctionPayloadType")
@@ -86,7 +85,6 @@ class LambdaTokenAuthorizer(BaseModel):
8685

8786

8887
class LambdaRequestAuthorizer(BaseModel):
89-
AuthorizationScopes: Optional[List[str]] = lambdarequestauthorizer("AuthorizationScopes")
9088
FunctionArn: SamIntrinsicable[str] = lambdarequestauthorizer("FunctionArn")
9189
FunctionInvokeRole: Optional[str] = lambdarequestauthorizer("FunctionInvokeRole")
9290
FunctionPayloadType: Optional[Literal["REQUEST"]] = lambdarequestauthorizer("FunctionPayloadType")

samtranslator/internal/schema_source/sam-docs.json

Lines changed: 38 additions & 32 deletions
Large diffs are not rendered by default.

samtranslator/schema/schema.json

Lines changed: 555 additions & 693 deletions
Large diffs are not rendered by default.

schema_source/cloudformation-docs.json

Lines changed: 3939 additions & 759 deletions
Large diffs are not rendered by default.

schema_source/cloudformation.schema.json

Lines changed: 523 additions & 645 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)