# NotificationWithSubscribersProperty

A notification with subscribers.

A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_budgets as budgets } from 'aws-cdk-lib';
const notificationWithSubscribersProperty: budgets.CfnBudget.NotificationWithSubscribersProperty = {
  notification: {
    comparisonOperator: 'comparisonOperator',
    notificationType: 'notificationType',
    threshold: 123,

    // the properties below are optional
    thresholdType: 'thresholdType',
  },
  subscribers: [{
    address: 'address',
    subscriptionType: 'subscriptionType',
  }],
};
```

Python:

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

notification_with_subscribers_property = budgets.CfnBudget.NotificationWithSubscribersProperty(
    notification=budgets.CfnBudget.NotificationProperty(
        comparison_operator="comparisonOperator",
        notification_type="notificationType",
        threshold=123,

        # the properties below are optional
        threshold_type="thresholdType"
    ),
    subscribers=[budgets.CfnBudget.SubscriberProperty(
        address="address",
        subscription_type="subscriptionType"
    )]
)
```

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.services.budgets.*;

NotificationWithSubscribersProperty notificationWithSubscribersProperty = NotificationWithSubscribersProperty.builder()
        .notification(NotificationProperty.builder()
                .comparisonOperator("comparisonOperator")
                .notificationType("notificationType")
                .threshold(123)

                // the properties below are optional
                .thresholdType("thresholdType")
                .build())
        .subscribers(List.of(SubscriberProperty.builder()
                .address("address")
                .subscriptionType("subscriptionType")
                .build()))
        .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.AWS.Budgets;

var notificationWithSubscribersProperty = new NotificationWithSubscribersProperty {
    Notification = new NotificationProperty {
        ComparisonOperator = "comparisonOperator",
        NotificationType = "notificationType",
        Threshold = 123,

        // the properties below are optional
        ThresholdType = "thresholdType"
    },
    Subscribers = new [] { new SubscriberProperty {
        Address = "address",
        SubscriptionType = "subscriptionType"
    } }
};
```

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"

notificationWithSubscribersProperty := &NotificationWithSubscribersProperty{
	Notification: &NotificationProperty{
		ComparisonOperator: jsii.String("comparisonOperator"),
		NotificationType: jsii.String("notificationType"),
		Threshold: jsii.Number(123),

		// the properties below are optional
		ThresholdType: jsii.String("thresholdType"),
	},
	Subscribers: []interface{}{
		&SubscriberProperty{
			Address: jsii.String("address"),
			SubscriptionType: jsii.String("subscriptionType"),
		},
	},
}
```

## Properties

- `notification`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.NotificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.NotificationProperty.html) (required) — The notification that's associated with a budget.

- `subscribers`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBudget.SubscriberProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_budgets.CfnBudget.SubscriberProperty.html)[] (required) — A list of subscribers who are subscribed to this notification.
