# CfnNotificationRulePropsMixin

Mixin · External

Creates a notification rule for a resource.

The rule specifies the events you want notifications about and the targets (such as Amazon Simple Notification Service topics or  clients configured for Slack) where you want to receive them.

Extends: [Mixin](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Mixin.html) › CfnNotificationRulePropsMixin
Implements: [IMixin](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.IMixin.html)

- CloudFormation: [`AWS::CodeStarNotifications::NotificationRule`](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-codestarnotifications-notificationrule.html)
- Source: Generated at build time
- Type last changed: v2.269.0 · 16 Sep 2026

## Initializer

TypeScript:

```ts
new CfnNotificationRulePropsMixin(props: CfnNotificationRuleMixinProps, options?: CfnPropertyMixinOptions)
```

Python:

```python
CfnNotificationRulePropsMixin(props: CfnNotificationRuleMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
```

Java:

```java
new CfnNotificationRulePropsMixin(CfnNotificationRuleMixinProps props, CfnPropertyMixinOptions options)
```

C#:

```csharp
new CfnNotificationRulePropsMixin(CfnNotificationRuleMixinProps props, CfnPropertyMixinOptions? options = null)
```

Go:

```go
NewCfnNotificationRulePropsMixin(Props CfnNotificationRuleMixinProps, Options CfnPropertyMixinOptions)
```

## Methods

- `applyTo(construct: IConstruct): void` — Apply the mixin properties to the construct.

- `isMixin(x: any): boolean` (static) — Checks if `x` is a Mixin.

  **Parameters**

  - `x` — Any object.

  **Returns:** true if `x` is an object created from a class which extends `Mixin`.

- `supports(construct: IConstruct): boolean` — Check if this mixin supports the given construct.
