You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permissions are defined using objects that are enums called like <Asset>Action, e.g. TableAction.SELECT. To include all actions, one must manually list all of them, and it clutters the configs, reducing readability. See picture:
Desired behavior
Include an ALL option, either in the Enums or as a string literal, that automatically adds all permissions for that specific asset.
Keep in mind that JSII is a bitch, so when transpiling from TypeScript to other languages, some more complex typings might end up not being enforced, or transpiled incorrectly.
The text was updated successfully, but these errors were encountered:
Current behavior
Permissions are defined using objects that are enums called like
<Asset>Action
, e.g.TableAction.SELECT
. To include all actions, one must manually list all of them, and it clutters the configs, reducing readability. See picture:Desired behavior
Include an
ALL
option, either in the Enums or as a string literal, that automatically adds all permissions for that specific asset.Example:
or
Caveats
Keep in mind that JSII is a bitch, so when transpiling from TypeScript to other languages, some more complex typings might end up not being enforced, or transpiled incorrectly.
The text was updated successfully, but these errors were encountered: