Skip to content

Commit

Permalink
fix(WAFv2): add patch to revert struct names (#24703)
Browse files Browse the repository at this point in the history
This PR is reverting the property type names from pattern `FooAction` to `Foo` for `WAFv2` resource. This change was introduced as part of a [CFNSpec merge](affe040#diff-827a2fd012e049c7ccedffa0360c12e7d967a173f36b8150de73ef6adc42ee4cL175-L357) and would be breaking existing customers if they were using previous property names.

Duplicating from [PR](#24651) for same issue for V2.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
vinayak-kukreja authored Mar 21, 2023
1 parent a2d9439 commit e03d8b8
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,15 @@
"path": "/Properties/Captcha/PrimitiveType",
"value": "Json"
},
{
"op": "remove",
"path": "/Properties/Challenge/Type"
},
{
"op": "add",
"path": "/Properties/Challenge/PrimitiveType",
"value": "Json"
},
{
"op": "remove",
"path": "/Properties/Count/Type"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"patch": {
"description": "Reverting property type names from FooAction to Foo, which were introduced as part of this PR: https://github.com/aws/aws-cdk/pull/23984",
"operations": [
{
"op": "remove",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.AllowAction"
},
{
"op": "add",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.Allow",
"value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allowaction.html",
"Properties": {
"CustomRequestHandling": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allowaction.html#cfn-wafv2-rulegroup-allowaction-customrequesthandling",
"Required": false,
"Type": "CustomRequestHandling",
"UpdateType": "Mutable"
}
}
}
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.BlockAction"
},
{
"op": "add",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.Block",
"value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-blockaction.html",
"Properties": {
"CustomResponse": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-blockaction.html#cfn-wafv2-rulegroup-blockaction-customresponse",
"Required": false,
"Type": "CustomResponse",
"UpdateType": "Mutable"
}
}
}
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.CaptchaAction"
},
{
"op": "add",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.Captcha",
"value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaaction.html",
"Properties": {
"CustomRequestHandling": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaaction.html#cfn-wafv2-rulegroup-captchaaction-customrequesthandling",
"Required": false,
"Type": "CustomRequestHandling",
"UpdateType": "Mutable"
}
}
}
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.ChallengeAction"
},
{
"op": "add",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.Challenge",
"value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeaction.html",
"Properties": {
"CustomRequestHandling": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeaction.html#cfn-wafv2-rulegroup-challengeaction-customrequesthandling",
"Required": false,
"Type": "CustomRequestHandling",
"UpdateType": "Mutable"
}
}
}
},
{
"op": "remove",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.CountAction"
},
{
"op": "add",
"path": "/PropertyTypes/AWS::WAFv2::RuleGroup.Count",
"value": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countaction.html",
"Properties": {
"CustomRequestHandling": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countaction.html#cfn-wafv2-rulegroup-countaction-customrequesthandling",
"Required": false,
"Type": "CustomRequestHandling",
"UpdateType": "Mutable"
}
}
}
}
]
}
}

0 comments on commit e03d8b8

Please sign in to comment.