---
title: Getting Started with Datadog
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Infrastructure > Datadog Resource Catalog
---

# aws_costexplorer_anomalysubscription{% #aws_costexplorer_anomalysubscription %}

## `account_id`{% #account_id %}

**Type**: `STRING`

## `frequency`{% #frequency %}

**Type**: `STRING`**Provider name**: `Frequency`**Description**: The frequency that anomaly notifications are sent. Notifications are sent either over email (for DAILY and WEEKLY frequencies) or SNS (for IMMEDIATE frequency). For more information, see [Creating an Amazon SNS topic for anomaly notifications](https://docs.aws.amazon.com/cost-management/latest/userguide/ad-SNS.html).

## `monitor_arn_list`{% #monitor_arn_list %}

**Type**: `UNORDERED_LIST_STRING`**Provider name**: `MonitorArnList`**Description**: A list of cost anomaly monitors.

## `subscribers`{% #subscribers %}

**Type**: `UNORDERED_LIST_STRUCT`**Provider name**: `Subscribers`**Description**: A list of subscribers to notify.

- `address`**Type**: `STRING`**Provider name**: `Address`**Description**: The email address or SNS Amazon Resource Name (ARN). This depends on the `Type`.
- `status`**Type**: `STRING`**Provider name**: `Status`**Description**: Indicates if the subscriber accepts the notifications.
- `type`**Type**: `STRING`**Provider name**: `Type`**Description**: The notification delivery channel.

## `subscription_arn`{% #subscription_arn %}

**Type**: `STRING`**Provider name**: `SubscriptionArn`**Description**: The `AnomalySubscription` Amazon Resource Name (ARN).

## `subscription_name`{% #subscription_name %}

**Type**: `STRING`**Provider name**: `SubscriptionName`**Description**: The name for the subscription.

## `tags`{% #tags %}

**Type**: `UNORDERED_LIST_STRING`

## `threshold`{% #threshold %}

**Type**: `DOUBLE`**Provider name**: `Threshold`**Description**: (deprecated) An absolute dollar value that must be exceeded by the anomaly's total impact (see [Impact](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Impact.html) for more details) for an anomaly notification to be generated. 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. You cannot specify both.

## `threshold_expression`{% #threshold_expression %}

**Type**: `STRUCT`**Provider name**: `ThresholdExpression`**Description**: An [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) 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`, corresponding to an anomaly's TotalImpact and TotalImpactPercentage, respectively (see [Impact](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Impact.html) for more details). 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 in string format. One of Threshold or ThresholdExpression is required for this resource. You cannot specify both. 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" ] } } ] }`



- `cost_categories`**Type**: `STRUCT`**Provider name**: `CostCategories`**Description**: The filter that's based on `CostCategory` values.
  - `key`**Type**: `STRING`**Provider name**: `Key`
  - `match_options`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `MatchOptions`**Description**: The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for `MatchOptions` is `EQUALS` and `CASE_SENSITIVE`.
  - `values`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `Values`**Description**: The specific value of the Cost Category.
- `dimensions`**Type**: `STRUCT`**Provider name**: `Dimensions`**Description**: The specific `Dimension` to use for `Expression`.
  - `key`**Type**: `STRING`**Provider name**: `Key`**Description**: The names of the metadata types that you can use to filter and group your results. For example, `AZ` returns a list of Availability Zones. Not all dimensions are supported in each API. Refer to the documentation for each specific API to see what is supported. `LINKED_ACCOUNT_NAME` and `SERVICE_CODE` can only be used in [CostCategoryRule](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategoryRule.html). `ANOMALY_TOTAL_IMPACT_ABSOLUTE` and `ANOMALY_TOTAL_IMPACT_PERCENTAGE` can only be used in [AnomalySubscriptions](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalySubscription.html).
  - `match_options`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `MatchOptions`**Description**: The match options that you can use to filter your results. `MatchOptions` is only applicable for actions related to Cost Category and Anomaly Subscriptions. Refer to the documentation for each specific API to see what is supported. The default values for `MatchOptions` are `EQUALS` and `CASE_SENSITIVE`.
  - `values`**Type**: `UNORDERED_LIST_STRING`**Provider name**: `Values`**Description**: The metadata values that you can use to filter and group your results. You can use `GetDimensionValues` to find specific values.
