github.com/jpreese/tflint@v0.19.2-0.20200908152133-b01686250fb6/rules/awsrules/models/mappings/cloudwatch-metric.hcl (about)

     1  import = "aws-sdk-go/models/apis/monitoring/2010-08-01/api-2.json"
     2  
     3  mapping "aws_cloudwatch_metric_alarm" {
     4    alarm_name                            = AlarmName
     5    comparison_operator                   = ComparisonOperator
     6    metric_name                           = MetricName
     7    namespace                             = Namespace
     8    statistic                             = Statistic
     9    alarm_description                     = AlarmDescription
    10    unit                                  = StandardUnit
    11    extended_statistic                    = ExtendedStatistic
    12    treat_missing_data                    = TreatMissingData
    13    evaluate_low_sample_count_percentiles = EvaluateLowSampleCountPercentile
    14  }
    15  
    16  test "aws_cloudwatch_metric_alarm" "comparison_operator" {
    17    ok = "GreaterThanOrEqualToThreshold"
    18    ng = "GreaterThanOrEqual"
    19  }
    20  
    21  test "aws_cloudwatch_metric_alarm" "namespace" {
    22    ok = "AWS/EC2"
    23    ng = ":EC2"
    24  }
    25  
    26  test "aws_cloudwatch_metric_alarm" "statistic" {
    27    ok = "Average"
    28    ng = "Median"
    29  }
    30  
    31  test "aws_cloudwatch_metric_alarm" "unit" {
    32    ok = "Gigabytes"
    33    ng = "GB"
    34  }
    35  
    36  test "aws_cloudwatch_metric_alarm" "extended_statistic" {
    37    ok = "p100"
    38    ng = "p101"
    39  }