Skip to content

Commit a7da20c

Browse files
authoredFeb 20, 2025
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

+1
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

+1
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

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.94.0"
1+
__version__ = "1.95.0"

‎samtranslator/compat.py

+7
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

-2
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

+38-32
Large diffs are not rendered by default.

‎samtranslator/schema/schema.json

+555-693
Large diffs are not rendered by default.

‎schema_source/cloudformation-docs.json

+3,939-759
Large diffs are not rendered by default.

‎schema_source/cloudformation.schema.json

+523-645
Large diffs are not rendered by default.

‎schema_source/sam.schema.json

+32-48
Large diffs are not rendered by default.

‎tests/translator/input/basic_application.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Conditions:
22
TestCondition:
33
Fn::Equals:
4-
- true
5-
- false
4+
- !Ref AWS::AccountId
5+
- myAccountId
66
Resources:
77
BasicApplication:
88
Type: AWS::Serverless::Application

‎tests/translator/input/definition_body_intrinsics_support.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Description: >
1313
Conditions:
1414
FalseCondition:
1515
Fn::Equals:
16-
- true
17-
- false
16+
- !Ref AWS::AccountId
17+
- myAccountId
1818

1919
Resources:
2020
# Rest Api with DefinitionBody under If intrinsic, SwaggerEditor not used

‎tests/translator/input/function_with_deployment_preference_alarms_intrinsic_if.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Conditions:
22
MyCondition:
33
Fn::Equals:
4-
- true
5-
- false
4+
- !Ref AWS::AccountId
5+
- myAccountId
66
Resources:
77
MinimalFunction:
88
Type: AWS::Serverless::Function

‎tests/translator/input/s3_with_condition.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Conditions:
22
MyCondition:
33
Fn::Equals:
4-
- true
5-
- false
4+
- !Ref AWS::AccountId
5+
- myAccountId
66
Resources:
77
ThumbnailFunction:
88
Type: AWS::Serverless::Function

‎tests/translator/input/sns_intrinsics.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Parameters:
66
Conditions:
77
MyCondition:
88
Fn::Equals:
9-
- true
10-
- false
9+
- !Ref AWS::AccountId
10+
- myAccountId
1111

1212
Resources:
1313
SaveNotificationFunction:

‎tests/translator/output/aws-cn/basic_application.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"TestCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-cn/definition_body_intrinsics_support.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"Conditions": {
44
"FalseCondition": {
55
"Fn::Equals": [
6-
true,
7-
false
6+
{
7+
"Ref": "AWS::AccountId"
8+
},
9+
"myAccountId"
810
]
911
}
1012
},

‎tests/translator/output/aws-cn/function_with_deployment_preference_alarms_intrinsic_if.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-cn/s3_with_condition.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-cn/sns_intrinsics.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-us-gov/basic_application.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"TestCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-us-gov/definition_body_intrinsics_support.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"Conditions": {
44
"FalseCondition": {
55
"Fn::Equals": [
6-
true,
7-
false
6+
{
7+
"Ref": "AWS::AccountId"
8+
},
9+
"myAccountId"
810
]
911
}
1012
},

‎tests/translator/output/aws-us-gov/function_with_deployment_preference_alarms_intrinsic_if.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-us-gov/s3_with_condition.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/aws-us-gov/sns_intrinsics.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/basic_application.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"TestCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/definition_body_intrinsics_support.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"Conditions": {
44
"FalseCondition": {
55
"Fn::Equals": [
6-
true,
7-
false
6+
{
7+
"Ref": "AWS::AccountId"
8+
},
9+
"myAccountId"
810
]
911
}
1012
},

‎tests/translator/output/function_with_deployment_preference_alarms_intrinsic_if.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/s3_with_condition.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

‎tests/translator/output/sns_intrinsics.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"Conditions": {
33
"MyCondition": {
44
"Fn::Equals": [
5-
true,
6-
false
5+
{
6+
"Ref": "AWS::AccountId"
7+
},
8+
"myAccountId"
79
]
810
}
911
},

0 commit comments

Comments
 (0)
Failed to load comments.