| 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 |
Amazonka.CostExplorer.UpdateAnomalySubscription
Description
Updates an existing cost anomaly monitor subscription.
Synopsis
- data UpdateAnomalySubscription = UpdateAnomalySubscription' {}
- newUpdateAnomalySubscription :: Text -> UpdateAnomalySubscription
- updateAnomalySubscription_frequency :: Lens' UpdateAnomalySubscription (Maybe AnomalySubscriptionFrequency)
- updateAnomalySubscription_monitorArnList :: Lens' UpdateAnomalySubscription (Maybe [Text])
- updateAnomalySubscription_subscribers :: Lens' UpdateAnomalySubscription (Maybe [Subscriber])
- updateAnomalySubscription_subscriptionName :: Lens' UpdateAnomalySubscription (Maybe Text)
- updateAnomalySubscription_threshold :: Lens' UpdateAnomalySubscription (Maybe Double)
- updateAnomalySubscription_thresholdExpression :: Lens' UpdateAnomalySubscription (Maybe Expression)
- updateAnomalySubscription_subscriptionArn :: Lens' UpdateAnomalySubscription Text
- data UpdateAnomalySubscriptionResponse = UpdateAnomalySubscriptionResponse' {
- httpStatus :: Int
- subscriptionArn :: Text
- newUpdateAnomalySubscriptionResponse :: Int -> Text -> UpdateAnomalySubscriptionResponse
- updateAnomalySubscriptionResponse_httpStatus :: Lens' UpdateAnomalySubscriptionResponse Int
- updateAnomalySubscriptionResponse_subscriptionArn :: Lens' UpdateAnomalySubscriptionResponse Text
Creating a Request
data UpdateAnomalySubscription Source #
See: newUpdateAnomalySubscription smart constructor.
Constructors
| UpdateAnomalySubscription' | |
Fields
| |
Instances
newUpdateAnomalySubscription Source #
Arguments
| :: Text | |
| -> UpdateAnomalySubscription |
Create a value of UpdateAnomalySubscription 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:
UpdateAnomalySubscription, updateAnomalySubscription_frequency - The update to the frequency value that subscribers receive
notifications.
UpdateAnomalySubscription, updateAnomalySubscription_monitorArnList - A list of cost anomaly monitor ARNs.
UpdateAnomalySubscription, updateAnomalySubscription_subscribers - The update to the subscriber list.
UpdateAnomalySubscription, updateAnomalySubscription_subscriptionName - The new name of the subscription.
UpdateAnomalySubscription, updateAnomalySubscription_threshold - (deprecated)
The update to the threshold value for receiving notifications.
This field has been deprecated. To update a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.
UpdateAnomalySubscription, updateAnomalySubscription_thresholdExpression - The update to the
Expression
object used to specify the anomalies that you want to generate alerts
for. This supports dimensions and nested expressions. The supported
dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and
ANOMALY_TOTAL_IMPACT_PERCENTAGE. The supported nested expression types
are AND and OR. The match option GREATER_THAN_OR_EQUAL is
required. Values must be numbers between 0 and 10,000,000,000.
The following are examples of valid ThresholdExpressions:
- Absolute threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } - Percentage threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ANDtwo thresholds together:{ "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }ORtwo thresholds together:{ "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
UpdateAnomalySubscription, updateAnomalySubscription_subscriptionArn - A cost anomaly subscription Amazon Resource Name (ARN).
Request Lenses
updateAnomalySubscription_frequency :: Lens' UpdateAnomalySubscription (Maybe AnomalySubscriptionFrequency) Source #
The update to the frequency value that subscribers receive notifications.
updateAnomalySubscription_monitorArnList :: Lens' UpdateAnomalySubscription (Maybe [Text]) Source #
A list of cost anomaly monitor ARNs.
updateAnomalySubscription_subscribers :: Lens' UpdateAnomalySubscription (Maybe [Subscriber]) Source #
The update to the subscriber list.
updateAnomalySubscription_subscriptionName :: Lens' UpdateAnomalySubscription (Maybe Text) Source #
The new name of the subscription.
updateAnomalySubscription_threshold :: Lens' UpdateAnomalySubscription (Maybe Double) Source #
(deprecated)
The update to the threshold value for receiving notifications.
This field has been deprecated. To update a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.
updateAnomalySubscription_thresholdExpression :: Lens' UpdateAnomalySubscription (Maybe Expression) Source #
The update to the
Expression
object used to specify the anomalies that you want to generate alerts
for. This supports dimensions and nested expressions. The supported
dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and
ANOMALY_TOTAL_IMPACT_PERCENTAGE. The supported nested expression types
are AND and OR. The match option GREATER_THAN_OR_EQUAL is
required. Values must be numbers between 0 and 10,000,000,000.
The following are examples of valid ThresholdExpressions:
- Absolute threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } - Percentage threshold:
{ "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ANDtwo thresholds together:{ "And": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }ORtwo thresholds together:{ "Or": [ { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } }, { "Dimensions": { "Key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE", "MatchOptions": [ "GREATER_THAN_OR_EQUAL" ], "Values": [ "100" ] } } ] }
updateAnomalySubscription_subscriptionArn :: Lens' UpdateAnomalySubscription Text Source #
A cost anomaly subscription Amazon Resource Name (ARN).
Destructuring the Response
data UpdateAnomalySubscriptionResponse Source #
See: newUpdateAnomalySubscriptionResponse smart constructor.
Constructors
| UpdateAnomalySubscriptionResponse' | |
Fields
| |
Instances
newUpdateAnomalySubscriptionResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> UpdateAnomalySubscriptionResponse |
Create a value of UpdateAnomalySubscriptionResponse 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:httpStatus:UpdateAnomalySubscriptionResponse', updateAnomalySubscriptionResponse_httpStatus - The response's http status code.
UpdateAnomalySubscription, updateAnomalySubscriptionResponse_subscriptionArn - A cost anomaly subscription ARN.
Response Lenses
updateAnomalySubscriptionResponse_httpStatus :: Lens' UpdateAnomalySubscriptionResponse Int Source #
The response's http status code.
updateAnomalySubscriptionResponse_subscriptionArn :: Lens' UpdateAnomalySubscriptionResponse Text Source #
A cost anomaly subscription ARN.