# IAlarmRef

Indicates that this resource can be referenced as a Alarm.

Extends: [IConstruct](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IConstruct.html), [IEnvironmentAware](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.IEnvironmentAware.html)
Implemented by: [Alarm](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html), [AlarmBase](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AlarmBase.html), [AnomalyDetectionAlarm](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AnomalyDetectionAlarm.html), [CfnAlarm](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlarm.html), [CompositeAlarm](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CompositeAlarm.html), PromQLAlarm
Obtainable from: [CfnAlarm.fromAlarmArn](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlarm.html#fromalarmarn), [CfnAlarm.fromAlarmName](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlarm.html#fromalarmname)
Used as argument in: [AlarmEvents.fromAlarm](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_mixins-preview.aws_cloudwatch.events.AlarmEvents.html#fromalarm), [AlarmMuteRule.addAlarm](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AlarmMuteRule.html#addalarm), AlarmRule.fromAlarm, CfnAlarm.arnForAlarm, EcsDeploymentGroup.addAlarm, LambdaDeploymentGroup.addAlarm, Monitor.fromCloudWatchAlarm, ServerDeploymentGroup.addAlarm

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Properties

- `alarmRef`: [AlarmReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cloudwatch.AlarmReference.html) — A reference to a Alarm resource.

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

## Methods

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
