amazonka-cost-explorer-2.0: Amazon Cost Explorer Service 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.CostExplorer.UpdateAnomalySubscription

Description

Updates an existing cost anomaly monitor subscription.

Synopsis

Creating a Request

data UpdateAnomalySubscription Source #

See: newUpdateAnomalySubscription smart constructor.

Constructors

UpdateAnomalySubscription' 

Fields

  • frequency :: Maybe AnomalySubscriptionFrequency

    The update to the frequency value that subscribers receive notifications.

  • monitorArnList :: Maybe [Text]

    A list of cost anomaly monitor ARNs.

  • subscribers :: Maybe [Subscriber]

    The update to the subscriber list.

  • subscriptionName :: Maybe Text

    The new name of the subscription.

  • threshold :: Maybe Double

    (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.

  • thresholdExpression :: Maybe Expression

    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" ] } }
    • AND two 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" ] } } ] }
    • OR two 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" ] } } ] }
  • subscriptionArn :: Text

    A cost anomaly subscription Amazon Resource Name (ARN).

Instances

Instances details
ToJSON UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

ToHeaders UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

ToPath UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

ToQuery UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

AWSRequest UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Generic UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Associated Types

type Rep UpdateAnomalySubscription :: Type -> Type #

Read UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Show UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

NFData UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Eq UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Hashable UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

type AWSResponse UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

type Rep UpdateAnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

type Rep UpdateAnomalySubscription = D1 ('MetaData "UpdateAnomalySubscription" "Amazonka.CostExplorer.UpdateAnomalySubscription" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "UpdateAnomalySubscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "frequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnomalySubscriptionFrequency)) :*: (S1 ('MetaSel ('Just "monitorArnList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "subscribers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Subscriber])))) :*: ((S1 ('MetaSel ('Just "subscriptionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "threshold") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "thresholdExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Expression)) :*: S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateAnomalySubscription Source #

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" ] } }
  • AND two 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" ] } } ] }
  • OR two 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_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" ] } }
  • AND two 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" ] } } ] }
  • OR two 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

Instances details
Generic UpdateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Associated Types

type Rep UpdateAnomalySubscriptionResponse :: Type -> Type #

Read UpdateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Show UpdateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

NFData UpdateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

Eq UpdateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

type Rep UpdateAnomalySubscriptionResponse Source # 
Instance details

Defined in Amazonka.CostExplorer.UpdateAnomalySubscription

type Rep UpdateAnomalySubscriptionResponse = D1 ('MetaData "UpdateAnomalySubscriptionResponse" "Amazonka.CostExplorer.UpdateAnomalySubscription" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "UpdateAnomalySubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "subscriptionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateAnomalySubscriptionResponse Source #

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