DefinitelyTyped/types/aws-lambda
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
..
aws-lambda-tests.ts Improve coverage of AWS Lambda Statement type (#25304) 2018-04-26 15:03:40 -07:00
index.d.ts Improve coverage of AWS Lambda Statement type (#25304) 2018-04-26 15:03:40 -07:00
tsconfig.json Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
tslint.json aws-lambda: Lint (#23167) 2018-01-24 09:53:35 -08:00