---
type: resource-type
title: CloudWatchAlarmTemplate
description: aws resource type AWS::MediaLive::CloudWatchAlarmTemplate
name: CloudWatchAlarmTemplate
lexicon: aws
resource_type: AWS::MediaLive::CloudWatchAlarmTemplate
---
`AWS::MediaLive::CloudWatchAlarmTemplate`, a resource type of the aws lexicon.

## Properties

- `ComparisonOperator` (`CloudWatchAlarmTemplate_CloudWatchAlarmTemplateComparisonOperator`, required)
- `EvaluationPeriods` (`number`, required): The number of periods over which data is compared to the specified threshold.
- `MetricName` (`string`, required): The name of the metric associated with the alarm. Must be compatible with targetResourceType.
- `Name` (`string`, required): A resource's name. Names must be unique within the scope of a resource type in a specific region.
- `Period` (`number`, required): The period, in seconds, over which the specified statistic is applied.
- `Statistic` (`CloudWatchAlarmTemplate_CloudWatchAlarmTemplateStatistic`, required)
- `TargetResourceType` (`CloudWatchAlarmTemplate_CloudWatchAlarmTemplateTargetResourceType`, required)
- `Threshold` (`number`, required): The threshold value to compare with the specified statistic.
- `TreatMissingData` (`CloudWatchAlarmTemplate_CloudWatchAlarmTemplateTreatMissingData`, required)
- `Arn` (`string`, optional): A cloudwatch alarm template's ARN (Amazon Resource Name)
- `CreatedAt` (`string`, optional)
- `DatapointsToAlarm` (`number`, optional): The number of datapoints within the evaluation period that must be breaching to trigger the alarm.
- `Description` (`string`, optional): A resource's optional description.
- `GroupId` (`string`, optional): A cloudwatch alarm template group's id. AWS provided template groups have ids that start with `aws-`
- `GroupIdentifier` (`string`, optional): A cloudwatch alarm template group's identifier. Can be either be its id or current name.
- `Id` (`string`, optional): A cloudwatch alarm template's id. AWS provided templates have ids that start with `aws-`
- `Identifier` (`string`, optional)
- `ModifiedAt` (`string`, optional)
- `Tags` (`Record<string, unknown>`, optional)

## Attributes

- `Arn`
- `CreatedAt`
- `GroupId`
- `Id`
- `Identifier`
- `ModifiedAt`
