amazonka-budgets-2.0: Amazon Budgets SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Budgets.Types.Notification

Description

 
Synopsis

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 of PERCENTAGE
  • A comparisonOperator of GREATER_THAN
  • A notification threshold of 80

See: newNotification smart constructor.

Constructors

Notification' 

Fields

  • notificationState :: Maybe 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.

  • thresholdType :: Maybe 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.

  • notificationType :: NotificationType

    Specifies whether the notification is for how much you have spent (ACTUAL) or for how much that you're forecasted to spend (FORECASTED).

  • comparisonOperator :: ComparisonOperator

    The comparison that's used for this notification.

  • threshold :: Double

    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.

Instances

Instances details
FromJSON Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

ToJSON Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Generic Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Associated Types

type Rep Notification :: Type -> Type #

Read Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Show Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

NFData Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Methods

rnf :: Notification -> () #

Eq Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Hashable Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

type Rep Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

type Rep Notification = D1 ('MetaData "Notification" "Amazonka.Budgets.Types.Notification" "amazonka-budgets-2.0-7U1RWOWP6pxJESvTUhAD5Y" 'False) (C1 ('MetaCons "Notification'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "notificationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationState)) :*: S1 ('MetaSel ('Just "thresholdType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ThresholdType))) :*: (S1 ('MetaSel ('Just "notificationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NotificationType) :*: (S1 ('MetaSel ('Just "comparisonOperator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ComparisonOperator) :*: S1 ('MetaSel ('Just "threshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))))

newNotification Source #

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.