-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: suppression examples would be better using List[NagPackSuppression] #583
Comments
Hi! Can you provide a link to the documentation that you're referencing? If you're referencing the python documentation, it is auto-converted from the TypeScript example documentation using jsii and may contain errors |
Hello https://constructs.dev/packages/cdk-nag/v/2.4.39?lang=python#suppressing-a-rule But the typescript version shows the same issue No mention of NagPackSuppression |
That is a valid example for TypeScript since the |
Would asserting the type help the generation? |
I think we would need to do something like this aws/jsii#826 |
This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. |
Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. |
Describe your issue?
The suppression examples use List[dict] rather than List[NagPackSuppression]
For example "Example 1) Default Construct" has
NagSuppressions.add_resource_suppressions(test, [id="AwsSolutions-EC23", reason="lorem ipsum"])
when
NagSuppressions.add_resource_suppressions(test, [NagPackSuppression(id="AwsSolutions-EC23", reason="lorem ipsum")])
would seem to be better
I'd be happy to spend the time changing these if its accepted
The text was updated successfully, but these errors were encountered: