Skip to content

Commit

Permalink
Add rate based number limits
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed May 1, 2020
1 parent 02c1301 commit 411a8e8
Show file tree
Hide file tree
Showing 27 changed files with 834 additions and 133 deletions.
9 changes: 9 additions & 0 deletions src/cfnlint/data/CloudSpecs/af-south-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24588,6 +24588,15 @@
"NumberMax": 16384,
"NumberMin": 5
},
"AWS::WAFv2::RuleGroup.Rate.AggregateKeyType": {
"AllowedValues": [
"IP"
]
},
"AWS::WAFv2::RuleGroup.Rate.Limit": {
"NumberMax": 20000000,
"NumberMin": 100
},
"AWS::WorkSpaces::Workspace.ComputeTypeName": {
"AllowedValues": [
"GRAPHICS",
Expand Down
44 changes: 37 additions & 7 deletions src/cfnlint/data/CloudSpecs/ap-east-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14966,13 +14966,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-scopedownstatement",
Expand All @@ -14989,13 +14995,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-scopedownstatement",
Expand Down Expand Up @@ -15634,13 +15646,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-scopedownstatement",
Expand All @@ -15663,7 +15681,10 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-scopedownstatement",
Expand Down Expand Up @@ -33559,6 +33580,15 @@
"NumberMax": 16384,
"NumberMin": 5
},
"AWS::WAFv2::RuleGroup.Rate.AggregateKeyType": {
"AllowedValues": [
"IP"
]
},
"AWS::WAFv2::RuleGroup.Rate.Limit": {
"NumberMax": 20000000,
"NumberMin": 100
},
"AWS::WorkSpaces::Workspace.ComputeTypeName": {
"AllowedValues": [
"GRAPHICS",
Expand Down
44 changes: 37 additions & 7 deletions src/cfnlint/data/CloudSpecs/ap-northeast-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -28779,13 +28779,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-scopedownstatement",
Expand All @@ -28802,13 +28808,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-scopedownstatement",
Expand Down Expand Up @@ -29447,13 +29459,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-scopedownstatement",
Expand All @@ -29476,7 +29494,10 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-scopedownstatement",
Expand Down Expand Up @@ -54878,6 +54899,15 @@
"NumberMax": 16384,
"NumberMin": 5
},
"AWS::WAFv2::RuleGroup.Rate.AggregateKeyType": {
"AllowedValues": [
"IP"
]
},
"AWS::WAFv2::RuleGroup.Rate.Limit": {
"NumberMax": 20000000,
"NumberMin": 100
},
"AWS::WorkSpaces::Workspace.ComputeTypeName": {
"AllowedValues": [
"GRAPHICS",
Expand Down
44 changes: 37 additions & 7 deletions src/cfnlint/data/CloudSpecs/ap-northeast-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -27229,13 +27229,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementone.html#cfn-wafv2-rulegroup-ratebasedstatementone-scopedownstatement",
Expand All @@ -27252,13 +27258,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementtwo.html#cfn-wafv2-rulegroup-ratebasedstatementtwo-scopedownstatement",
Expand Down Expand Up @@ -27897,13 +27909,19 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-aggregatekeytype",
"PrimitiveType": "String",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"Limit": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.Limit"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementone.html#cfn-wafv2-webacl-ratebasedstatementone-scopedownstatement",
Expand All @@ -27926,7 +27944,10 @@
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-limit",
"PrimitiveType": "Integer",
"Required": true,
"UpdateType": "Mutable"
"UpdateType": "Mutable",
"Value": {
"ValueType": "AWS::WAFv2::RuleGroup.Rate.AggregateKeyType"
}
},
"ScopeDownStatement": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementtwo.html#cfn-wafv2-webacl-ratebasedstatementtwo-scopedownstatement",
Expand Down Expand Up @@ -52407,6 +52428,15 @@
"NumberMax": 16384,
"NumberMin": 5
},
"AWS::WAFv2::RuleGroup.Rate.AggregateKeyType": {
"AllowedValues": [
"IP"
]
},
"AWS::WAFv2::RuleGroup.Rate.Limit": {
"NumberMax": 20000000,
"NumberMin": 100
},
"AWS::WorkSpaces::Workspace.ComputeTypeName": {
"AllowedValues": [
"GRAPHICS",
Expand Down
9 changes: 9 additions & 0 deletions src/cfnlint/data/CloudSpecs/ap-northeast-3.json
Original file line number Diff line number Diff line change
Expand Up @@ -26151,6 +26151,15 @@
"NumberMax": 16384,
"NumberMin": 5
},
"AWS::WAFv2::RuleGroup.Rate.AggregateKeyType": {
"AllowedValues": [
"IP"
]
},
"AWS::WAFv2::RuleGroup.Rate.Limit": {
"NumberMax": 20000000,
"NumberMin": 100
},
"AWS::WorkSpaces::Workspace.ComputeTypeName": {
"AllowedValues": [
"GRAPHICS",
Expand Down
Loading

0 comments on commit 411a8e8

Please sign in to comment.