# NotificationRuleProperty

A notification rule: which alert states trigger it, and where the notification is sent.

- Source: Generated code
- Type last changed: v2.277.0 · 13 Nov 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const notificationRuleProperty: cloudwatch.CfnAlert.NotificationRuleProperty = {
  target: {
    arn: 'arn',
    type: 'type',

    // the properties below are optional
    metadata: {
      metadataKey: 'metadata',
    },
  },
  trigger: {
    stateValues: ['stateValues'],
  },
};
```

## Properties

- `target`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlert.TargetProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlert.TargetProperty.html) (required) — Where the notification is sent.

- `trigger`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlert.TriggerProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CfnAlert.TriggerProperty.html) (required) — The alert states that trigger the notification rule.
