Skip to content

Commit 11adeaf

Browse files
autogenerated maintenance (#180)
Co-authored-by: wata727 <wata727@users.noreply.github.com>
1 parent 77720ac commit 11adeaf

File tree

5 files changed

+17
-26
lines changed

5 files changed

+17
-26
lines changed

docs/rules/azurerm_healthcare_service_invalid_cosmosdb_throughput.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Warns about values that appear to be invalid based on [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs).
66

7-
The rule requires the value to be in the range 400 <= x <= 10000.
7+
The rule requires the value to be 400 or higher.
88

99
## Example
1010

@@ -18,7 +18,7 @@ resource "azurerm_healthcare_service" "foo" {
1818
$ tflint
1919
1 issue(s) found:
2020
21-
Error: cosmosdb_throughput must be 10000 or less (azurerm_healthcare_service_invalid_cosmosdb_throughput)
21+
Error: cosmosdb_throughput must be 400 or higher (azurerm_healthcare_service_invalid_cosmosdb_throughput)
2222
2323
on template.tf line 2:
2424
2: cosmosdb_throughput = ... // invalid value

rules/apispec/azurerm_healthcare_service_invalid_cosmosdb_throughput.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type AzurermHealthcareServiceInvalidCosmosdbThroughputRule struct {
1515

1616
resourceType string
1717
attributeName string
18-
max int
1918
min int
2019
}
2120

@@ -24,7 +23,6 @@ func NewAzurermHealthcareServiceInvalidCosmosdbThroughputRule() *AzurermHealthca
2423
return &AzurermHealthcareServiceInvalidCosmosdbThroughputRule{
2524
resourceType: "azurerm_healthcare_service",
2625
attributeName: "cosmosdb_throughput",
27-
max: 10000,
2826
min: 400,
2927
}
3028
}
@@ -69,13 +67,6 @@ func (r *AzurermHealthcareServiceInvalidCosmosdbThroughputRule) Check(runner tfl
6967
err := runner.EvaluateExpr(attribute.Expr, &val, nil)
7068

7169
err = runner.EnsureNoError(err, func() error {
72-
if val > r.max {
73-
runner.EmitIssue(
74-
r,
75-
"cosmosdb_throughput must be 10000 or less",
76-
attribute.Expr.Range(),
77-
)
78-
}
7970
if val < r.min {
8071
runner.EmitIssue(
8172
r,

tools/apispec-rule-gen/schema/.terraform.lock.hcl

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/apispec-rule-gen/schema/schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)