31 files changed +5168
-2221
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ updates:
10
10
include : scope
11
11
reviewers :
12
12
- aws/sae-enterprise
13
+ - aws/aws-lambda-tooling
13
14
open-pull-requests-limit : 10
Original file line number Diff line number Diff line change 1
1
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2
2
3
3
* @ aws/sae-enterprise
4
+ * @ aws/aws-lambda-tooling
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Resources:
4
4
Properties :
5
5
CodeUri : ${codeuri}
6
6
Handler : index.handler
7
- Runtime : nodejs20 .x
7
+ Runtime : nodejs18 .x
8
8
AutoPublishAlias : Live
9
9
AutoPublishAliasAllProperties : true
10
10
Layers :
Original file line number Diff line number Diff line change 1
- __version__ = "1.94 .0"
1
+ __version__ = "1.95 .0"
Original file line number Diff line number Diff line change 1
1
try :
2
2
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
3
7
except ImportError :
4
8
# Unfortunately mypy cannot handle this try/expect pattern, and "type: ignore"
5
9
# is the simplest work-around. See: https://github.com/python/mypy/issues/1153
6
10
import pydantic # type: ignore
11
+ except AttributeError :
12
+ # Pydantic v1.10.17+
13
+ import pydantic # type: ignore
7
14
8
15
__all__ = ["pydantic" ]
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ class LambdaRequestAuthorizerIdentity(BaseModel):
77
77
78
78
79
79
class LambdaTokenAuthorizer (BaseModel ):
80
- AuthorizationScopes : Optional [List [str ]] = lambdatokenauthorizer ("AuthorizationScopes" )
81
80
FunctionArn : SamIntrinsicable [str ] = lambdatokenauthorizer ("FunctionArn" )
82
81
FunctionInvokeRole : Optional [str ] = lambdatokenauthorizer ("FunctionInvokeRole" )
83
82
FunctionPayloadType : Optional [Literal ["TOKEN" ]] = lambdatokenauthorizer ("FunctionPayloadType" )
@@ -86,7 +85,6 @@ class LambdaTokenAuthorizer(BaseModel):
86
85
87
86
88
87
class LambdaRequestAuthorizer (BaseModel ):
89
- AuthorizationScopes : Optional [List [str ]] = lambdarequestauthorizer ("AuthorizationScopes" )
90
88
FunctionArn : SamIntrinsicable [str ] = lambdarequestauthorizer ("FunctionArn" )
91
89
FunctionInvokeRole : Optional [str ] = lambdarequestauthorizer ("FunctionInvokeRole" )
92
90
FunctionPayloadType : Optional [Literal ["REQUEST" ]] = lambdarequestauthorizer ("FunctionPayloadType" )
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
Conditions :
2
2
TestCondition :
3
3
Fn::Equals :
4
- - true
5
- - false
4
+ - !Ref AWS::AccountId
5
+ - myAccountId
6
6
Resources :
7
7
BasicApplication :
8
8
Type : AWS::Serverless::Application
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ Description: >
13
13
Conditions :
14
14
FalseCondition :
15
15
Fn::Equals :
16
- - true
17
- - false
16
+ - !Ref AWS::AccountId
17
+ - myAccountId
18
18
19
19
Resources :
20
20
# Rest Api with DefinitionBody under If intrinsic, SwaggerEditor not used
Original file line number Diff line number Diff line change 1
1
Conditions :
2
2
MyCondition :
3
3
Fn::Equals :
4
- - true
5
- - false
4
+ - !Ref AWS::AccountId
5
+ - myAccountId
6
6
Resources :
7
7
MinimalFunction :
8
8
Type : AWS::Serverless::Function
Original file line number Diff line number Diff line change 1
1
Conditions :
2
2
MyCondition :
3
3
Fn::Equals :
4
- - true
5
- - false
4
+ - !Ref AWS::AccountId
5
+ - myAccountId
6
6
Resources :
7
7
ThumbnailFunction :
8
8
Type : AWS::Serverless::Function
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ Parameters:
6
6
Conditions :
7
7
MyCondition :
8
8
Fn::Equals :
9
- - true
10
- - false
9
+ - !Ref AWS::AccountId
10
+ - myAccountId
11
11
12
12
Resources :
13
13
SaveNotificationFunction :
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"TestCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 3
3
"Conditions" : {
4
4
"FalseCondition" : {
5
5
"Fn::Equals" : [
6
- true ,
7
- false
6
+ {
7
+ "Ref" : " AWS::AccountId"
8
+ },
9
+ " myAccountId"
8
10
]
9
11
}
10
12
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"TestCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 3
3
"Conditions" : {
4
4
"FalseCondition" : {
5
5
"Fn::Equals" : [
6
- true ,
7
- false
6
+ {
7
+ "Ref" : " AWS::AccountId"
8
+ },
9
+ " myAccountId"
8
10
]
9
11
}
10
12
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"TestCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 3
3
"Conditions" : {
4
4
"FalseCondition" : {
5
5
"Fn::Equals" : [
6
- true ,
7
- false
6
+ {
7
+ "Ref" : " AWS::AccountId"
8
+ },
9
+ " myAccountId"
8
10
]
9
11
}
10
12
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
Original file line number Diff line number Diff line change 2
2
"Conditions" : {
3
3
"MyCondition" : {
4
4
"Fn::Equals" : [
5
- true ,
6
- false
5
+ {
6
+ "Ref" : " AWS::AccountId"
7
+ },
8
+ " myAccountId"
7
9
]
8
10
}
9
11
},
0 commit comments