Before I submit a new issue/request - to confirm, ...
# sst
b
Before I submit a new issue/request - to confirm, we don’t yet have an enum we can use for permissions using the
grantX
style? As seen in https://docs.serverless-stack.com/util/Permissions#access-to-a-list-of-specific-permissions-in-a-construct as an interface to https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-dynamodb.Table.html#grantwbrreadwbrdatagrantee I love typescript for this, and we do see this pattern all over
sst
, but not seeing anything on roadmap re: perms/grants
t
I want to improve this
Need to think about this more
One thing I find annoying about CDK is they make enums for everything instead of using string unions which means you have to import a package to specify an option. Eg the recent:
Copy code
app.setDefaultRemovalPolicy(...)
You have to add another import to pass in the value there instead of just typing in a typechecked string
I would love to create typechecking for permissions so that when you do
Copy code
[topic, "..."]
It type checks the string you pass in to verify it's callable on
topic