-
Notifications
You must be signed in to change notification settings - Fork 598
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
Fix issues with spec in wafv2 RegularExpressionList #1300
Conversation
Confirmed that the spec is wrong and that the new changes will both pass cfn-lint and result in a successful deployment. |
Codecov Report
@@ Coverage Diff @@
## master #1300 +/- ##
=======================================
Coverage 87.62% 87.62%
=======================================
Files 137 137
Lines 8123 8123
Branches 1995 1995
=======================================
Hits 7118 7118
Misses 597 597
Partials 408 408 Continue to review full report at Codecov.
|
"path": "/ResourceTypes/AWS::WAFv2::RegexPatternSet/Properties/RegularExpressionList", | ||
"value": { | ||
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regularexpressionlist.html#cfn-wafv2-regexpatternset-regularexpressionlist-regularexpressionlist", | ||
"ItemType": "Regex", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ItemType": "Regex", | |
"PrimitiveItemType": "String", |
still getting: E3002: Expecting an object at Resources/RegexPatternSet/Properties/RegularExpressionList/0
with this deployable template:
Resources:
RegexPatternSet:
Type: AWS::WAFv2::RegexPatternSet
Properties:
Name: Name
Scope: REGIONAL
RegularExpressionList:
- RegularExpression
Will check if the RegexString
property is also valid
@PatMyron are you saying this is wrong too? https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-regexpatternset-regex.html |
Resources:
RegexPatternSet:
Type: AWS::WAFv2::RegexPatternSet
Properties:
Name: Name
Scope: REGIONAL
RegularExpressionList:
- RegexString: RegularExpression also successfully deploys and now successfully lints, so this is probably fine |
Issue #, if available:
Fix #1286
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.