# NotificationRuleReference

A reference to a NotificationRule resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codestarnotifications as interfaces_codestarnotifications } from 'aws-cdk-lib/interfaces';
const notificationRuleReference: interfaces_codestarnotifications.NotificationRuleReference = {
  notificationRuleArn: 'notificationRuleArn',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_codestarnotifications as interfaces_codestarnotifications

notification_rule_reference = interfaces_codestarnotifications.NotificationRuleReference(
    notification_rule_arn="notificationRuleArn"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.codestarnotifications.*;

NotificationRuleReference notificationRuleReference = NotificationRuleReference.builder()
        .notificationRuleArn("notificationRuleArn")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.CodeStarNotifications;

var notificationRuleReference = new NotificationRuleReference {
    NotificationRuleArn = "notificationRuleArn"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

notificationRuleReference := &NotificationRuleReference{
	NotificationRuleArn: jsii.String("notificationRuleArn"),
}
```

## Properties

- `notificationRuleArn`: string (required) — The Arn of the NotificationRule resource.
