Skip to content

Commit

Permalink
Update Limitatinos in the README.md
Browse files Browse the repository at this point in the history
Remove the limitation on `Resource` and `Action` regarding single
string value. Though keep the limitation for `Principal` and
`Condition`.
  • Loading branch information
tdpauw committed Jan 23, 2022
1 parent c22a39a commit fb9152e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ Supports different principals.
## Limitations
The library only supports the canonical form of IAM Policy JSON documents, i.e.
everywhere a string or an array can be passed, an array is expected.
The library now supports a single string as `Action` and `Resource` value, though it does not yet support this for `Principal` and `Condition` key values.
For `Principal` and `Condition` it still expects the canonical form of an IAM Policy JSON document, i.e. everywhere a string or an array can be passed, an array is expected.
```json
{
Expand All @@ -154,8 +155,8 @@ everywhere a string or an array can be passed, an array is expected.
"Principal": {
"AWS": ["arn:aws:iam::123456789012:user/user-name"]
},
"Action": ["ec2:Describe*"],
"Resource": ["*"],
"Action": "ec2:Describe*",
"Resource": "*",
"Condition": {
"StringEquals": {
"kms:CallerAccount": ["123456789012"]
Expand Down

0 comments on commit fb9152e

Please sign in to comment.