-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support string or string slices when deserializing `IamPolicySta…
…tement` (#854) `Action` and `Resource` allow both `string` and `[string]` as values. Support deserializing `IamPolicyStatement` with either of these values. fixes: #853
- Loading branch information
1 parent
5b1de1d
commit 4a3dbc9
Showing
4 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
lambda-events/src/fixtures/example-apigw-custom-auth-response-with-single-value-action.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"principalId": "yyyyyyyy", | ||
"policyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Action": "execute-api:Invoke", | ||
"Effect": "Allow", | ||
"Resource": ["arn:aws:execute-api:{regionId}:{accountId}:{appId}/{stage}/{httpVerb}/[{resource}/[child-resources]]"] | ||
} | ||
] | ||
}, | ||
"context": { | ||
"stringKey": "value", | ||
"numberKey": "1", | ||
"booleanKey": "true" | ||
}, | ||
"usageIdentifierKey": "{api-key}" | ||
} |
19 changes: 19 additions & 0 deletions
19
...da-events/src/fixtures/example-apigw-custom-auth-response-with-single-value-resource.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"principalId": "yyyyyyyy", | ||
"policyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Action": ["execute-api:Invoke"], | ||
"Effect": "Allow", | ||
"Resource": "arn:aws:execute-api:{regionId}:{accountId}:{appId}/{stage}/{httpVerb}/[{resource}/[child-resources]]" | ||
} | ||
] | ||
}, | ||
"context": { | ||
"stringKey": "value", | ||
"numberKey": "1", | ||
"booleanKey": "true" | ||
}, | ||
"usageIdentifierKey": "{api-key}" | ||
} |