Files
DefinitelyTyped/types
Aneil Mallavarapu 07268c98de Improve coverage of AWS Lambda Statement type (#25304)
* 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
2018-04-26 15:03:40 -07:00
..
…
…
…
…
…
…
…
…
…
…
…
2018-04-10 10:13:33 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-09 12:11:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-14 12:37:38 -07:00
…
2018-04-25 12:02:45 -07:00
…
…
…
2018-04-17 09:46:34 -07:00
…
…
…
…
2018-04-19 11:07:30 -07:00
…
2018-04-16 15:23:39 -07:00
…
…
…
…
…
…
…
…
2018-04-24 15:58:36 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-18 09:58:55 -07:00
…
…
…
2018-04-11 11:45:43 -07:00
…
…
…
…
…
…
2018-04-26 09:21:48 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-06 09:12:23 -04:00
2018-04-09 09:35:40 -07:00
…
…
…
2018-04-24 15:56:52 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-24 16:03:38 -07:00
…
2018-04-24 16:03:38 -07:00
…
…
…
…
…
…
2018-04-09 13:18:04 -07:00
…
…
…
…
…
…
2018-04-18 11:26:14 -07:00
…
…
…
…
2018-04-16 15:35:32 -07:00
…
…
…
…
…
…
…
…
2018-04-25 21:16:21 -07:00
…
…
2018-04-25 12:02:33 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-18 17:05:05 -07:00
…
…
2018-04-24 17:22:30 -07:00
…
…
2018-04-18 12:36:54 -07:00
…
…
2018-04-18 12:56:48 -07:00
…
…
…
…
…
…
…
…
2018-04-06 08:34:37 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-11 11:52:53 -07:00
…
…
…
…
2018-04-15 00:05:04 +01:00
…
…
2018-04-21 15:47:09 -07:00
…
2018-04-14 12:16:51 -07:00
2018-04-25 15:30:16 -07:00
…
…
…
…
…
…
…
…
…
…
2018-04-24 16:08:55 -07:00
…
…
…
…
…
…
2018-04-25 11:56:00 -07:00
…
…
…
…
…
…
…
…
…
…
…
…