NotificationWithSubscribersProperty Struct
A notification with subscribers.
A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.
Example
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
# 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
// 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();
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"
} }
};
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
notificationIResolvable | CfnBudget.NotificationPropertynotificationtyping.Union[IResolvable, NotificationProperty]notificationIResolvableNotificationIResolvableNotificationinterface{}required#The notification that's associated with a budget.
subscribersIResolvable | IResolvable | CfnBudget.SubscriberProperty[]subscriberstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SubscriberProperty]]]subscribersIResolvableSubscribersIResolvableSubscribersinterface{}required#A list of subscribers who are subscribed to this notification.