pub struct Notification {
pub comparison_operator: String,
pub notification_type: String,
pub threshold: f64,
pub threshold_type: Option<String>,
}
A notification associated with a budget. A budget can have up to five notifications.
Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to ten 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 comparisonOperator of GREATER_THAN
-
A notification threshold of 80
The comparison used for this notification.
Whether the notification is for how much you have spent (ACTUAL
) or for how much you are forecasted to spend (FORECASTED
).
The threshold associated with a notification. Thresholds are always a percentage.
The type of threshold for a notification. For ACTUAL
thresholds, AWS notifies you when you go over the threshold, and for FORECASTED
thresholds AWS notifies you when you are forecasted to go over the threshold.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static