AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CE::AnomalyMonitor

CfnAnomalyMonitor

The `AWS::CE::AnomalyMonitor` resource is a Cost Explorer resource type that continuously inspects your account's cost data for anomalies, based on `MonitorType` and `MonitorSpecification` . The content consists of detailed metadata and the current status of the monitor object.

Import

import { CfnAnomalyMonitor } from 'aws-cdk-lib/aws-ce';

Or use the module namespace:

import * as ce from 'aws-cdk-lib/aws-ce';
// ce.CfnAnomalyMonitor

Properties

Configuration passed to the constructor as CfnAnomalyMonitorProps.

monitorNameRequired
string

The name of the monitor.

monitorTypeRequired
string

The type of the monitor. Set this to `DIMENSIONAL` for an AWS managed monitor. AWS managed monitors automatically track up to the top 5,000 values by cost within a dimension of your choosing. Each dimension value is evaluated independently. If you start incurring cost in a new value of your chosen dimension, it will automatically be analyzed by an AWS managed monitor. Set this to `CUSTOM` for a customer managed monitor. Customer managed monitors let you select specific dimension values that get monitored in aggregate. For more information about monitor types, see [Monitor types](https://docs.aws.amazon.com/cost-management/latest/userguide/getting-started-ad.html#monitor-type-def) in the *Billing and Cost Management User Guide* .

monitorDimensionOptional
string

For customer managed monitors, do not specify this field. For AWS managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For `TAG` and `COST_CATEGORY` dimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.

monitorSpecificationOptional
string

The array of `MonitorSpecification` in JSON array format. For instance, you can use `MonitorSpecification` to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the [Examples](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html#aws-resource-ce-anomalymonitor--examples) section of this page.

resourceTagsOptional
ResourceTagProperty[]

Tags to assign to monitor.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-ce
CFN TypeAWS::CE::AnomalyMonitor
Properties5

External Links