Skip to content

Commit

Permalink
JSON schema for validating the period on AWS namespaced CW Alarms
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Apr 12, 2023
1 parent 620f663 commit fefa824
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"additionalProperties": true,
"description": "Period < 60 not supported for namespaces with the following prefix: AWS/",
"if": {
"properties": {
"Namespace": {
"pattern": "^AWS/.*$",
"type": "string"
}
}
},
"then": {
"properties": {
"Period": {
"minimum": 60,
"type": "integer"
}
}
},
"type": "object"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"aws_cloudwatch_alarm/metric_onlyone",
"aws_cloudwatch_alarm/metrics_exclusive",
"aws_cloudwatch_alarm/statistic_exclusive",
"aws_cloudwatch_alarm/thresholdmetric_exclusive"
"aws_cloudwatch_alarm/thresholdmetric_exclusive",
"aws_cloudwatch_alarm/aws_namespace_period"
]
}
]

0 comments on commit fefa824

Please sign in to comment.