libZSservicesZSamazonka-budgetsZSamazonka-budgets
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Budgets.Types.Notification

Description

 
Synopsis

Documentation

data Notification Source #

A notification that is 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

  • thresholdType :: Maybe ThresholdType

    The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS 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%, AWS notifies you when you go over 160 dollars.

  • notificationState :: Maybe NotificationState

    Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.

  • notificationType :: NotificationType

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

  • comparisonOperator :: ComparisonOperator

    The comparison that is used for this notification.

  • threshold :: Double

    The threshold that is 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
Eq Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Read Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Show 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 #

NFData Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

Methods

rnf :: Notification -> () #

Hashable Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

ToJSON Notification Source # 
Instance details

Defined in Amazonka.Budgets.Types.Notification

FromJSON 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" "libZSservicesZSamazonka-budgetsZSamazonka-budgets" 'False) (C1 ('MetaCons "Notification'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thresholdType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ThresholdType)) :*: S1 ('MetaSel ('Just "notificationState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationState))) :*: (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:thresholdType:Notification', notification_thresholdType - The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS 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%, AWS notifies you when you go over 160 dollars.

$sel:notificationState:Notification', notification_notificationState - Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.

$sel:notificationType:Notification', notification_notificationType - Whether the notification is for how much you have spent (ACTUAL) or for how much you're forecasted to spend (FORECASTED).

$sel:comparisonOperator:Notification', notification_comparisonOperator - The comparison that is used for this notification.

$sel:threshold:Notification', notification_threshold - The threshold that is 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_thresholdType :: Lens' Notification (Maybe ThresholdType) Source #

The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS 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%, AWS notifies you when you go over 160 dollars.

notification_notificationState :: Lens' Notification (Maybe NotificationState) Source #

Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.

notification_notificationType :: Lens' Notification NotificationType Source #

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

notification_comparisonOperator :: Lens' Notification ComparisonOperator Source #

The comparison that is used for this notification.

notification_threshold :: Lens' Notification Double Source #

The threshold that is 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.