1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ce
  6. AnomalyMonitor

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    AWS Cost Anomaly Detection leverages advanced Machine Learning technologies to identify anomalous spend and root causes, so you can quickly take action. You can use Cost Anomaly Detection by creating monitor.

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var anomalyServiceMonitor = new AwsNative.Ce.AnomalyMonitor("anomalyServiceMonitor", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Dimensional,
            MonitorDimension = AwsNative.Ce.AnomalyMonitorMonitorDimension.Service,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "anomalyServiceMonitor", &ce.AnomalyMonitorArgs{
    			MonitorName:      pulumi.String("MonitorName"),
    			MonitorType:      ce.AnomalyMonitorMonitorTypeDimensional,
    			MonitorDimension: ce.AnomalyMonitorMonitorDimensionService,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const anomalyServiceMonitor = new aws_native.ce.AnomalyMonitor("anomalyServiceMonitor", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Dimensional,
        monitorDimension: aws_native.ce.AnomalyMonitorMonitorDimension.Service,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_service_monitor = aws_native.ce.AnomalyMonitor("anomalyServiceMonitor",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.DIMENSIONAL,
        monitor_dimension=aws_native.ce.AnomalyMonitorMonitorDimension.SERVICE)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var anomalyServiceMonitor = new AwsNative.Ce.AnomalyMonitor("anomalyServiceMonitor", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Dimensional,
            MonitorDimension = AwsNative.Ce.AnomalyMonitorMonitorDimension.Service,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "anomalyServiceMonitor", &ce.AnomalyMonitorArgs{
    			MonitorName:      pulumi.String("MonitorName"),
    			MonitorType:      ce.AnomalyMonitorMonitorTypeDimensional,
    			MonitorDimension: ce.AnomalyMonitorMonitorDimensionService,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const anomalyServiceMonitor = new aws_native.ce.AnomalyMonitor("anomalyServiceMonitor", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Dimensional,
        monitorDimension: aws_native.ce.AnomalyMonitorMonitorDimension.Service,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_service_monitor = aws_native.ce.AnomalyMonitor("anomalyServiceMonitor",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.DIMENSIONAL,
        monitor_dimension=aws_native.ce.AnomalyMonitorMonitorDimension.SERVICE)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithTags = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithTags", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithTags", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithTags = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithTags", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }",
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_tags = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithTags",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }")
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithTags = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithTags", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithTags", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithTags = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithTags", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }",
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_tags = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithTags",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Tags\" : { \"Key\" : \"Tag Key\", \"Values\" : [ \"TagValue1\", \"TagValue2\" ] } }")
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithCC = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithCC", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithCC", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithCC = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithCC", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }",
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_cc = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithCC",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }")
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithCC = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithCC", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithCC", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithCC = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithCC", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }",
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_cc = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithCC",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"CostCategories\" : { \"Key\" : \"CostCategoryKey\", \"Values\" : [ \"CostCategoryValue\" ] } }")
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithLinkedAccount = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithLinkedAccount", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithLinkedAccount = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_linked_account = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }")
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithLinkedAccount = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithLinkedAccount", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithLinkedAccount = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_linked_account = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }")
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithLinkedAccount = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
        });
    
        var anomalyServiceMonitor = new AwsNative.Ce.AnomalyMonitor("anomalyServiceMonitor", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Dimensional,
            MonitorDimension = AwsNative.Ce.AnomalyMonitorMonitorDimension.Service,
        });
    
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            Threshold = 100.0,
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new[]
            {
                customAnomalyMonitorWithLinkedAccount.Id,
                anomalyServiceMonitor.Id,
            },
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                    Address = "abc@def.com",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		customAnomalyMonitorWithLinkedAccount, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithLinkedAccount", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		anomalyServiceMonitor, err := ce.NewAnomalyMonitor(ctx, "anomalyServiceMonitor", &ce.AnomalyMonitorArgs{
    			MonitorName:      pulumi.String("MonitorName"),
    			MonitorType:      ce.AnomalyMonitorMonitorTypeDimensional,
    			MonitorDimension: ce.AnomalyMonitorMonitorDimensionService,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName: pulumi.String("SubscriptionName"),
    			Threshold:        pulumi.Float64(100),
    			Frequency:        ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList: pulumi.StringArray{
    				customAnomalyMonitorWithLinkedAccount.ID(),
    				anomalyServiceMonitor.ID(),
    			},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    					Address: pulumi.String("abc@def.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithLinkedAccount = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
    });
    const anomalyServiceMonitor = new aws_native.ce.AnomalyMonitor("anomalyServiceMonitor", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Dimensional,
        monitorDimension: aws_native.ce.AnomalyMonitorMonitorDimension.Service,
    });
    const anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        threshold: 100,
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [
            customAnomalyMonitorWithLinkedAccount.id,
            anomalyServiceMonitor.id,
        ],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_linked_account = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }")
    anomaly_service_monitor = aws_native.ce.AnomalyMonitor("anomalyServiceMonitor",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.DIMENSIONAL,
        monitor_dimension=aws_native.ce.AnomalyMonitorMonitorDimension.SERVICE)
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold=float(100),
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[
            custom_anomaly_monitor_with_linked_account.id,
            anomaly_service_monitor.id,
        ],
        subscribers=[{
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
            "address": "abc@def.com",
        }])
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithLinkedAccount = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
        });
    
        var anomalyServiceMonitor = new AwsNative.Ce.AnomalyMonitor("anomalyServiceMonitor", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Dimensional,
            MonitorDimension = AwsNative.Ce.AnomalyMonitorMonitorDimension.Service,
        });
    
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            Threshold = 100.0,
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new[]
            {
                customAnomalyMonitorWithLinkedAccount.Id,
                anomalyServiceMonitor.Id,
            },
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                    Address = "abc@def.com",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		customAnomalyMonitorWithLinkedAccount, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithLinkedAccount", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		anomalyServiceMonitor, err := ce.NewAnomalyMonitor(ctx, "anomalyServiceMonitor", &ce.AnomalyMonitorArgs{
    			MonitorName:      pulumi.String("MonitorName"),
    			MonitorType:      ce.AnomalyMonitorMonitorTypeDimensional,
    			MonitorDimension: ce.AnomalyMonitorMonitorDimensionService,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName: pulumi.String("SubscriptionName"),
    			Threshold:        pulumi.Float64(100),
    			Frequency:        ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList: pulumi.StringArray{
    				customAnomalyMonitorWithLinkedAccount.ID(),
    				anomalyServiceMonitor.ID(),
    			},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    					Address: pulumi.String("abc@def.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithLinkedAccount = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
    });
    const anomalyServiceMonitor = new aws_native.ce.AnomalyMonitor("anomalyServiceMonitor", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Dimensional,
        monitorDimension: aws_native.ce.AnomalyMonitorMonitorDimension.Service,
    });
    const anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        threshold: 100,
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [
            customAnomalyMonitorWithLinkedAccount.id,
            anomalyServiceMonitor.id,
        ],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_linked_account = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }")
    anomaly_service_monitor = aws_native.ce.AnomalyMonitor("anomalyServiceMonitor",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.DIMENSIONAL,
        monitor_dimension=aws_native.ce.AnomalyMonitorMonitorDimension.SERVICE)
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold=float(100),
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[
            custom_anomaly_monitor_with_linked_account.id,
            anomaly_service_monitor.id,
        ],
        subscribers=[{
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
            "address": "abc@def.com",
        }])
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithLinkedAccount = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
        });
    
        var anomalyServiceMonitor = new AwsNative.Ce.AnomalyMonitor("anomalyServiceMonitor", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Dimensional,
            MonitorDimension = AwsNative.Ce.AnomalyMonitorMonitorDimension.Service,
        });
    
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            Threshold = 100.0,
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new[]
            {
                customAnomalyMonitorWithLinkedAccount.Id,
                anomalyServiceMonitor.Id,
            },
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                    Address = "abc@def.com",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		customAnomalyMonitorWithLinkedAccount, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithLinkedAccount", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		anomalyServiceMonitor, err := ce.NewAnomalyMonitor(ctx, "anomalyServiceMonitor", &ce.AnomalyMonitorArgs{
    			MonitorName:      pulumi.String("MonitorName"),
    			MonitorType:      ce.AnomalyMonitorMonitorTypeDimensional,
    			MonitorDimension: ce.AnomalyMonitorMonitorDimensionService,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName: pulumi.String("SubscriptionName"),
    			Threshold:        pulumi.Float64(100),
    			Frequency:        ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList: pulumi.StringArray{
    				customAnomalyMonitorWithLinkedAccount.ID(),
    				anomalyServiceMonitor.ID(),
    			},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    					Address: pulumi.String("abc@def.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithLinkedAccount = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
    });
    const anomalyServiceMonitor = new aws_native.ce.AnomalyMonitor("anomalyServiceMonitor", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Dimensional,
        monitorDimension: aws_native.ce.AnomalyMonitorMonitorDimension.Service,
    });
    const anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        threshold: 100,
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [
            customAnomalyMonitorWithLinkedAccount.id,
            anomalyServiceMonitor.id,
        ],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_linked_account = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }")
    anomaly_service_monitor = aws_native.ce.AnomalyMonitor("anomalyServiceMonitor",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.DIMENSIONAL,
        monitor_dimension=aws_native.ce.AnomalyMonitorMonitorDimension.SERVICE)
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold=float(100),
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[
            custom_anomaly_monitor_with_linked_account.id,
            anomaly_service_monitor.id,
        ],
        subscribers=[{
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
            "address": "abc@def.com",
        }])
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customAnomalyMonitorWithLinkedAccount = new AwsNative.Ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Custom,
            MonitorSpecification = " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
        });
    
        var anomalyServiceMonitor = new AwsNative.Ce.AnomalyMonitor("anomalyServiceMonitor", new()
        {
            MonitorName = "MonitorName",
            MonitorType = AwsNative.Ce.AnomalyMonitorMonitorType.Dimensional,
            MonitorDimension = AwsNative.Ce.AnomalyMonitorMonitorDimension.Service,
        });
    
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            Threshold = 100.0,
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new[]
            {
                customAnomalyMonitorWithLinkedAccount.Id,
                anomalyServiceMonitor.Id,
            },
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                    Address = "abc@def.com",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/ce"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		customAnomalyMonitorWithLinkedAccount, err := ce.NewAnomalyMonitor(ctx, "customAnomalyMonitorWithLinkedAccount", &ce.AnomalyMonitorArgs{
    			MonitorName:          pulumi.String("MonitorName"),
    			MonitorType:          ce.AnomalyMonitorMonitorTypeCustom,
    			MonitorSpecification: pulumi.String(" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }"),
    		})
    		if err != nil {
    			return err
    		}
    		anomalyServiceMonitor, err := ce.NewAnomalyMonitor(ctx, "anomalyServiceMonitor", &ce.AnomalyMonitorArgs{
    			MonitorName:      pulumi.String("MonitorName"),
    			MonitorType:      ce.AnomalyMonitorMonitorTypeDimensional,
    			MonitorDimension: ce.AnomalyMonitorMonitorDimensionService,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName: pulumi.String("SubscriptionName"),
    			Threshold:        pulumi.Float64(100),
    			Frequency:        ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList: pulumi.StringArray{
    				customAnomalyMonitorWithLinkedAccount.ID(),
    				anomalyServiceMonitor.ID(),
    			},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    					Address: pulumi.String("abc@def.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aws_native from "@pulumi/aws-native";
    
    const customAnomalyMonitorWithLinkedAccount = new aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Custom,
        monitorSpecification: " { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }",
    });
    const anomalyServiceMonitor = new aws_native.ce.AnomalyMonitor("anomalyServiceMonitor", {
        monitorName: "MonitorName",
        monitorType: aws_native.ce.AnomalyMonitorMonitorType.Dimensional,
        monitorDimension: aws_native.ce.AnomalyMonitorMonitorDimension.Service,
    });
    const anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        threshold: 100,
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [
            customAnomalyMonitorWithLinkedAccount.id,
            anomalyServiceMonitor.id,
        ],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    custom_anomaly_monitor_with_linked_account = aws_native.ce.AnomalyMonitor("customAnomalyMonitorWithLinkedAccount",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.CUSTOM,
        monitor_specification=" { \"Dimensions\" : { \"Key\" : \"LINKED_ACCOUNT\", \"Values\" : [ \"123456789012\", \"123456789013\" ] } }")
    anomaly_service_monitor = aws_native.ce.AnomalyMonitor("anomalyServiceMonitor",
        monitor_name="MonitorName",
        monitor_type=aws_native.ce.AnomalyMonitorMonitorType.DIMENSIONAL,
        monitor_dimension=aws_native.ce.AnomalyMonitorMonitorDimension.SERVICE)
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold=float(100),
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[
            custom_anomaly_monitor_with_linked_account.id,
            anomaly_service_monitor.id,
        ],
        subscribers=[{
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
            "address": "abc@def.com",
        }])
    

    Example coming soon!

    Create AnomalyMonitor Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AnomalyMonitor(name: string, args: AnomalyMonitorArgs, opts?: CustomResourceOptions);
    @overload
    def AnomalyMonitor(resource_name: str,
                       args: AnomalyMonitorArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def AnomalyMonitor(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       monitor_type: Optional[AnomalyMonitorMonitorType] = None,
                       monitor_dimension: Optional[AnomalyMonitorMonitorDimension] = None,
                       monitor_name: Optional[str] = None,
                       monitor_specification: Optional[str] = None,
                       resource_tags: Optional[Sequence[_root_inputs.CreateOnlyTagArgs]] = None)
    func NewAnomalyMonitor(ctx *Context, name string, args AnomalyMonitorArgs, opts ...ResourceOption) (*AnomalyMonitor, error)
    public AnomalyMonitor(string name, AnomalyMonitorArgs args, CustomResourceOptions? opts = null)
    public AnomalyMonitor(String name, AnomalyMonitorArgs args)
    public AnomalyMonitor(String name, AnomalyMonitorArgs args, CustomResourceOptions options)
    
    type: aws-native:ce:AnomalyMonitor
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ce_anomaly_monitor" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AnomalyMonitorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AnomalyMonitorArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AnomalyMonitorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnomalyMonitorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnomalyMonitorArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AnomalyMonitor Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AnomalyMonitor resource accepts the following input properties:

    MonitorType Pulumi.AwsNative.Ce.AnomalyMonitorMonitorType

    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 in the Billing and Cost Management User Guide .

    MonitorDimension Pulumi.AwsNative.Ce.AnomalyMonitorMonitorDimension
    The dimensions to evaluate
    MonitorName string
    The name of the monitor.
    MonitorSpecification 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 section of this page.
    ResourceTags List<Pulumi.AwsNative.Inputs.CreateOnlyTag>
    Tags to assign to monitor.
    MonitorType AnomalyMonitorMonitorType

    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 in the Billing and Cost Management User Guide .

    MonitorDimension AnomalyMonitorMonitorDimension
    The dimensions to evaluate
    MonitorName string
    The name of the monitor.
    MonitorSpecification 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 section of this page.
    ResourceTags CreateOnlyTagArgs
    Tags to assign to monitor.
    monitor_type "DIMENSIONAL" | "CUSTOM"

    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 in the Billing and Cost Management User Guide .

    monitor_dimension "SERVICE" | "LINKED_ACCOUNT" | "TAG" | "COST_CATEGORY"
    The dimensions to evaluate
    monitor_name string
    The name of the monitor.
    monitor_specification 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 section of this page.
    resource_tags list(object)
    Tags to assign to monitor.
    monitorType AnomalyMonitorMonitorType

    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 in the Billing and Cost Management User Guide .

    monitorDimension AnomalyMonitorMonitorDimension
    The dimensions to evaluate
    monitorName String
    The name of the monitor.
    monitorSpecification 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 section of this page.
    resourceTags List<CreateOnlyTag>
    Tags to assign to monitor.
    monitorType AnomalyMonitorMonitorType

    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 in the Billing and Cost Management User Guide .

    monitorDimension AnomalyMonitorMonitorDimension
    The dimensions to evaluate
    monitorName string
    The name of the monitor.
    monitorSpecification 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 section of this page.
    resourceTags CreateOnlyTag[]
    Tags to assign to monitor.
    monitor_type AnomalyMonitorMonitorType

    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 in the Billing and Cost Management User Guide .

    monitor_dimension AnomalyMonitorMonitorDimension
    The dimensions to evaluate
    monitor_name str
    The name of the monitor.
    monitor_specification str
    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 section of this page.
    resource_tags Sequence[CreateOnlyTagArgs]
    Tags to assign to monitor.
    monitorType "DIMENSIONAL" | "CUSTOM"

    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 in the Billing and Cost Management User Guide .

    monitorDimension "SERVICE" | "LINKED_ACCOUNT" | "TAG" | "COST_CATEGORY"
    The dimensions to evaluate
    monitorName String
    The name of the monitor.
    monitorSpecification 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 section of this page.
    resourceTags List<Property Map>
    Tags to assign to monitor.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AnomalyMonitor resource produces the following output properties:

    CreationDate string
    The date when the monitor was created.
    DimensionalValueCount int
    The value for evaluated dimensions.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastEvaluatedDate string
    The date when the monitor last evaluated for anomalies.
    LastUpdatedDate string
    The date when the monitor was last updated.
    MonitorArn string
    The Amazon Resource Name (ARN) value for the monitor.
    CreationDate string
    The date when the monitor was created.
    DimensionalValueCount int
    The value for evaluated dimensions.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastEvaluatedDate string
    The date when the monitor last evaluated for anomalies.
    LastUpdatedDate string
    The date when the monitor was last updated.
    MonitorArn string
    The Amazon Resource Name (ARN) value for the monitor.
    creation_date string
    The date when the monitor was created.
    dimensional_value_count number
    The value for evaluated dimensions.
    id string
    The provider-assigned unique ID for this managed resource.
    last_evaluated_date string
    The date when the monitor last evaluated for anomalies.
    last_updated_date string
    The date when the monitor was last updated.
    monitor_arn string
    The Amazon Resource Name (ARN) value for the monitor.
    creationDate String
    The date when the monitor was created.
    dimensionalValueCount Integer
    The value for evaluated dimensions.
    id String
    The provider-assigned unique ID for this managed resource.
    lastEvaluatedDate String
    The date when the monitor last evaluated for anomalies.
    lastUpdatedDate String
    The date when the monitor was last updated.
    monitorArn String
    The Amazon Resource Name (ARN) value for the monitor.
    creationDate string
    The date when the monitor was created.
    dimensionalValueCount number
    The value for evaluated dimensions.
    id string
    The provider-assigned unique ID for this managed resource.
    lastEvaluatedDate string
    The date when the monitor last evaluated for anomalies.
    lastUpdatedDate string
    The date when the monitor was last updated.
    monitorArn string
    The Amazon Resource Name (ARN) value for the monitor.
    creation_date str
    The date when the monitor was created.
    dimensional_value_count int
    The value for evaluated dimensions.
    id str
    The provider-assigned unique ID for this managed resource.
    last_evaluated_date str
    The date when the monitor last evaluated for anomalies.
    last_updated_date str
    The date when the monitor was last updated.
    monitor_arn str
    The Amazon Resource Name (ARN) value for the monitor.
    creationDate String
    The date when the monitor was created.
    dimensionalValueCount Number
    The value for evaluated dimensions.
    id String
    The provider-assigned unique ID for this managed resource.
    lastEvaluatedDate String
    The date when the monitor last evaluated for anomalies.
    lastUpdatedDate String
    The date when the monitor was last updated.
    monitorArn String
    The Amazon Resource Name (ARN) value for the monitor.

    Look up Existing AnomalyMonitor Resource

    Get an existing AnomalyMonitor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): AnomalyMonitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> AnomalyMonitor
    func GetAnomalyMonitor(ctx *Context, name string, id IDInput, state *AnomalyMonitorState, opts ...ResourceOption) (*AnomalyMonitor, error)
    public static AnomalyMonitor Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static AnomalyMonitor get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAnomalyMonitor:    type: aws-native:ce:AnomalyMonitor    get:      id: ${id}
    import {
      to = aws-native_ce_anomaly_monitor.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AnomalyMonitorState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    AnomalyMonitorMonitorDimension

    The dimensions to evaluate

    NameValue
    ServiceSERVICE
    LinkedAccountLINKED_ACCOUNT
    TagTAG
    CostCategoryCOST_CATEGORY
    NameValue
    AnomalyMonitorMonitorDimensionServiceSERVICE
    AnomalyMonitorMonitorDimensionLinkedAccountLINKED_ACCOUNT
    AnomalyMonitorMonitorDimensionTagTAG
    AnomalyMonitorMonitorDimensionCostCategoryCOST_CATEGORY
    Value
    SERVICE
    LINKED_ACCOUNT
    TAG
    COST_CATEGORY
    NameValue
    ServiceSERVICE
    LinkedAccountLINKED_ACCOUNT
    TagTAG
    CostCategoryCOST_CATEGORY
    NameValue
    ServiceSERVICE
    LinkedAccountLINKED_ACCOUNT
    TagTAG
    CostCategoryCOST_CATEGORY
    NameValue
    SERVICESERVICE
    LINKED_ACCOUNTLINKED_ACCOUNT
    TAGTAG
    COST_CATEGORYCOST_CATEGORY
    Value
    SERVICE
    LINKED_ACCOUNT
    TAG
    COST_CATEGORY

    AnomalyMonitorMonitorType

    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 in the Billing and Cost Management User Guide .

    NameValue
    DimensionalDIMENSIONAL
    CustomCUSTOM
    NameValue
    AnomalyMonitorMonitorTypeDimensionalDIMENSIONAL
    AnomalyMonitorMonitorTypeCustomCUSTOM
    Value
    DIMENSIONAL
    CUSTOM
    NameValue
    DimensionalDIMENSIONAL
    CustomCUSTOM
    NameValue
    DimensionalDIMENSIONAL
    CustomCUSTOM
    NameValue
    DIMENSIONALDIMENSIONAL
    CUSTOMCUSTOM
    Value
    DIMENSIONAL
    CUSTOM

    CreateOnlyTag, CreateOnlyTagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial