Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Notification = Notification' {}
- newNotification :: NotificationType -> ComparisonOperator -> Double -> Notification
- notification_notificationState :: Lens' Notification (Maybe NotificationState)
- notification_thresholdType :: Lens' Notification (Maybe ThresholdType)
- notification_notificationType :: Lens' Notification NotificationType
- notification_comparisonOperator :: Lens' Notification ComparisonOperator
- notification_threshold :: Lens' Notification Double
Documentation
data Notification Source #
A notification that's associated with a budget. A budget can have up to ten notifications.
Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.
For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters:
- A notificationType of
ACTUAL
- A
thresholdType
ofPERCENTAGE
- A
comparisonOperator
ofGREATER_THAN
- A notification
threshold
of80
See: newNotification
smart constructor.
Notification' | |
|
Instances
Create a value of Notification
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:notificationState:Notification'
, notification_notificationState
- Specifies whether this notification is in alarm. If a budget
notification is in the ALARM
state, you passed the set threshold for
the budget.
$sel:thresholdType:Notification'
, notification_thresholdType
- The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a
PERCENTAGE
threshold of 80%, Amazon Web Services notifies you when you
go over 160 dollars.
$sel:notificationType:Notification'
, notification_notificationType
- Specifies whether the notification is for how much you have spent
(ACTUAL
) or for how much that you're forecasted to spend
(FORECASTED
).
$sel:comparisonOperator:Notification'
, notification_comparisonOperator
- The comparison that's used for this notification.
$sel:threshold:Notification'
, notification_threshold
- The threshold that's associated with a notification. Thresholds are
always a percentage, and many customers find value being alerted between
50% - 200% of the budgeted amount. The maximum limit for your threshold
is 1,000,000% above the budgeted amount.
notification_notificationState :: Lens' Notification (Maybe NotificationState) Source #
Specifies whether this notification is in alarm. If a budget
notification is in the ALARM
state, you passed the set threshold for
the budget.
notification_thresholdType :: Lens' Notification (Maybe ThresholdType) Source #
The type of threshold for a notification. For ABSOLUTE_VALUE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over your total cost threshold. For PERCENTAGE
thresholds, Amazon Web Services notifies you when you go over or are
forecasted to go over a certain percentage of your forecasted spend. For
example, if you have a budget for 200 dollars and you have a
PERCENTAGE
threshold of 80%, Amazon Web Services notifies you when you
go over 160 dollars.
notification_notificationType :: Lens' Notification NotificationType Source #
Specifies whether the notification is for how much you have spent
(ACTUAL
) or for how much that you're forecasted to spend
(FORECASTED
).
notification_comparisonOperator :: Lens' Notification ComparisonOperator Source #
The comparison that's used for this notification.
notification_threshold :: Lens' Notification Double Source #
The threshold that's associated with a notification. Thresholds are always a percentage, and many customers find value being alerted between 50% - 200% of the budgeted amount. The maximum limit for your threshold is 1,000,000% above the budgeted amount.