mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Improve coverage of AWS Lambda Statement type Allow statements which have either a Principal or a Resource, instead of requiring Resource. This permits policies such as described in https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html: ``` { Effect: "Allow", Principal: "*", Action: "*" } ``` and ``` { Effect: "Allow", Principal: { "Service": "lambda.amazonaws.com" }, Action: "sts:AssumeRole" } ``` * Remove unnecessary additional type * Add tests for valid/invalid combinations of Resource and Principal in Statement type This addresses issues raised by @simonbuchanan here: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/25304\#pullrequestreview-115377094 |
||
|---|---|---|
| .. | ||
| aws-lambda-tests.ts | ||
| index.d.ts | ||
| tsconfig.json | ||
| tslint.json | ||