aws_cloudwatch_metric_alarm

Nivis Nix constructor for the aws_cloudwatch_metric_alarm resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  alarm_name,
  actions_enabled ? null,
  alarm_actions ? null,
  alarm_description ? null,
  comparison_operator ? null,
  datapoints_to_alarm ? null,
  dimensions ? null,
  evaluate_low_sample_count_percentiles ? null,
  evaluation_interval ? null,
  evaluation_periods ? null,
  extended_statistic ? null,
  id ? null,
  insufficient_data_actions ? null,
  metric_name ? null,
  namespace ? null,
  ok_actions ? null,
  period ? null,
  region ? null,
  statistic ? null,
  tags ? null,
  tags_all ? null,
  threshold ? null,
  threshold_metric_id ? null,
  treat_missing_data ? null,
  unit ? null,
  evaluation_criteria ? null,
  evaluation_window ? null,
  metric_query ? null,
  warm_up_configuration ? null,
  overrides ? {}
}
Required arguments
  • alarm_name
Optional arguments
  • actions_enabled (defaults to null)
  • alarm_actions (defaults to null)
  • alarm_description (defaults to null)
  • comparison_operator (defaults to null)
  • datapoints_to_alarm (defaults to null)
  • dimensions (defaults to null)
  • evaluate_low_sample_count_percentiles (defaults to null)
  • evaluation_interval (defaults to null)
  • evaluation_periods (defaults to null)
  • extended_statistic (defaults to null)
  • id (defaults to null)
  • insufficient_data_actions (defaults to null)
  • metric_name (defaults to null)
  • namespace (defaults to null)
  • ok_actions (defaults to null)
  • period (defaults to null)
  • region (defaults to null)
  • statistic (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • threshold (defaults to null)
  • threshold_metric_id (defaults to null)
  • treat_missing_data (defaults to null)
  • unit (defaults to null)
  • evaluation_criteria (defaults to null)
  • evaluation_window (defaults to null)
  • metric_query (defaults to null)
  • warm_up_configuration (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
Example
aws_cloudwatch_metric_alarm {
  name = "cloudwatch_metric_alarm";
  alarm_name = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.