-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(wafv2): wafv2.CfnWebACL.ExcludedRuleProperty name argument casing #27993
Comments
@gebailey , thanks for reporting this. Have you tried this with latest cdk version and still facing the issue ?? |
I upgraded to CDK 2.108.1 and still see this. It's strange because it looks like Cloud Formation is emitting some kind of warning or notice but the CDK output itself appears to complete. If I look at Cloudformation, the "Status reason" for the
And I think the above warning shows up in our GitHub action output, which is what prompted the issue. |
something similar here with GOLANG and SingleHeaderProperty #28074 |
related to #23679 (comment) |
Describe the bug
Not sure if this is a documentation bug, or a bug within CDK, but we're trying to modify rule sets on a Web ACL, and it's unclear if the
name
argument towafv2.CfnWebACL.ExcludedRuleProperty
is supposed to be upper-cased or lower-cased. The documentation at https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_wafv2/CfnWebACL.html#excludedruleproperty specifiesname
(with a lower-casen
).But we see the following error (warning?) when running CDK:
The modifications to the rule list seem to take effect, despite the error (warning?) displayed above.
Expected Behavior
I would not expect to see validation errors when using
name
.Current Behavior
I see unexpected validation errors when using
name
:Reproduction Steps
Our CDK stack constructs a WAFv2 Web ACL, and specifies rules using:
Documentation for
wafv2.CfnWebACL.ExcludedRuleProperty
suggests thatname
(lowercase N) should be specified as the parameter, but errors/warnings emitted by CDK suggest it is expectingName
(uppercase N).Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.96.2
Framework Version
No response
Node.js Version
18
OS
Ubuntu Linux
Language
Python
Language Version
Python 3.11
Other information
No response
The text was updated successfully, but these errors were encountered: