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.Types.AnomalySubscription

Description

 
Synopsis

Documentation

data AnomalySubscription Source #

The association between a monitor, threshold, and list of subscribers used to deliver notifications about anomalies detected by a monitor that exceeds a threshold. The content consists of the detailed metadata and the current status of the AnomalySubscription object.

See: newAnomalySubscription smart constructor.

Constructors

AnomalySubscription' 

Fields

  • accountId :: Maybe Text

    Your unique account identifier.

  • subscriptionArn :: Maybe Text

    The AnomalySubscription Amazon Resource Name (ARN).

  • threshold :: Maybe Double

    (deprecated)

    The dollar value that triggers a notification if the threshold is exceeded.

    This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

    One of Threshold or ThresholdExpression is required for this resource.

  • thresholdExpression :: Maybe Expression

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

    One of Threshold or ThresholdExpression is required for this resource.

    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" ] } } ] }
  • monitorArnList :: [Text]

    A list of cost anomaly monitors.

  • subscribers :: [Subscriber]

    A list of subscribers to notify.

  • frequency :: AnomalySubscriptionFrequency

    The frequency that anomaly reports are sent over email.

  • subscriptionName :: Text

    The name for the subscription.

Instances

Instances details
FromJSON AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

ToJSON AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

Generic AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

Associated Types

type Rep AnomalySubscription :: Type -> Type #

Read AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

Show AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

NFData AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

Methods

rnf :: AnomalySubscription -> () #

Eq AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

Hashable AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

type Rep AnomalySubscription Source # 
Instance details

Defined in Amazonka.CostExplorer.Types.AnomalySubscription

type Rep AnomalySubscription = D1 ('MetaData "AnomalySubscription" "Amazonka.CostExplorer.Types.AnomalySubscription" "amazonka-cost-explorer-2.0-QqVzyVvst98QYs5s2Ea4h" 'False) (C1 ('MetaCons "AnomalySubscription'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subscriptionArn") '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 "monitorArnList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "subscribers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Subscriber])) :*: (S1 ('MetaSel ('Just "frequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AnomalySubscriptionFrequency) :*: S1 ('MetaSel ('Just "subscriptionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newAnomalySubscription Source #

Create a value of AnomalySubscription 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:accountId:AnomalySubscription', anomalySubscription_accountId - Your unique account identifier.

$sel:subscriptionArn:AnomalySubscription', anomalySubscription_subscriptionArn - The AnomalySubscription Amazon Resource Name (ARN).

$sel:threshold:AnomalySubscription', anomalySubscription_threshold - (deprecated)

The dollar value that triggers a notification if the threshold is exceeded.

This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

One of Threshold or ThresholdExpression is required for this resource.

$sel:thresholdExpression:AnomalySubscription', anomalySubscription_thresholdExpression - An 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.

One of Threshold or ThresholdExpression is required for this resource.

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" ] } } ] }

$sel:monitorArnList:AnomalySubscription', anomalySubscription_monitorArnList - A list of cost anomaly monitors.

$sel:subscribers:AnomalySubscription', anomalySubscription_subscribers - A list of subscribers to notify.

$sel:frequency:AnomalySubscription', anomalySubscription_frequency - The frequency that anomaly reports are sent over email.

$sel:subscriptionName:AnomalySubscription', anomalySubscription_subscriptionName - The name for the subscription.

anomalySubscription_subscriptionArn :: Lens' AnomalySubscription (Maybe Text) Source #

The AnomalySubscription Amazon Resource Name (ARN).

anomalySubscription_threshold :: Lens' AnomalySubscription (Maybe Double) Source #

(deprecated)

The dollar value that triggers a notification if the threshold is exceeded.

This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

One of Threshold or ThresholdExpression is required for this resource.

anomalySubscription_thresholdExpression :: Lens' AnomalySubscription (Maybe Expression) Source #

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

One of Threshold or ThresholdExpression is required for this resource.

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" ] } } ] }

anomalySubscription_frequency :: Lens' AnomalySubscription AnomalySubscriptionFrequency Source #

The frequency that anomaly reports are sent over email.