MDAA TS Docs
    Preparing search index...
    • Periods CloudWatch accepts for an alarm metric, in seconds: 1, 5, 10, 30, or any multiple of 60.

      Validated up front because CloudFormation does not reject an invalid period at synth. On a metric-math alarm in particular the period is nested inside a MetricDataQuery that CDK passes through unvalidated, so an invalid value escapes synth and only fails when PutMetricAlarm is called during deployment.

      Parameters

      • periodSeconds: number

        The alarm period, in seconds, to validate

      • propName: string = 'period'

        Name used to refer to the offending property in the error message, so a config-driven caller can point at the config key the user actually set

      Returns void

      Error if the period is not a value CloudWatch accepts