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

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. Create subscription to be notified

    Example Usage

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            ThresholdExpression = "{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"Values\": [ \"100\" ], \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ] } }",
            MonitorArnList = new() {},
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Address = "abc@def.com",
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                },
            },
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
        });
    
    });
    
    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.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName:    pulumi.String("SubscriptionName"),
    			ThresholdExpression: pulumi.String("{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"Values\": [ \"100\" ], \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ] } }"),
    			MonitorArnList:      pulumi.StringArray{},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Address: pulumi.String("abc@def.com"),
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    				},
    			},
    			Frequency: ce.AnomalySubscriptionFrequencyDaily,
    		})
    		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 anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        thresholdExpression: "{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"Values\": [ \"100\" ], \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ] } }",
        monitorArnList: [],
        subscribers: [{
            address: "abc@def.com",
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
        }],
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold_expression="{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"Values\": [ \"100\" ], \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ] } }",
        monitor_arn_list=[],
        subscribers=[{
            "address": "abc@def.com",
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
        }],
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "Subscription 1",
            ThresholdExpression = "{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }",
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new() {},
            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 {
    		_, err := ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName:    pulumi.String("Subscription 1"),
    			ThresholdExpression: pulumi.String("{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }"),
    			Frequency:           ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList:      pulumi.StringArray{},
    			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 anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "Subscription 1",
        thresholdExpression: "{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }",
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="Subscription 1",
        threshold_expression="{ \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }",
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[],
        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 anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            ThresholdExpression = "{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
            MonitorArnList = new() {},
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Address = "abc@def.com",
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                },
            },
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
        });
    
    });
    
    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.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName:    pulumi.String("SubscriptionName"),
    			ThresholdExpression: pulumi.String("{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }"),
    			MonitorArnList:      pulumi.StringArray{},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Address: pulumi.String("abc@def.com"),
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    				},
    			},
    			Frequency: ce.AnomalySubscriptionFrequencyDaily,
    		})
    		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 anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        thresholdExpression: "{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        monitorArnList: [],
        subscribers: [{
            address: "abc@def.com",
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
        }],
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold_expression="{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        monitor_arn_list=[],
        subscribers=[{
            "address": "abc@def.com",
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
        }],
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            ThresholdExpression = "{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new() {},
            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 {
    		_, err := ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName:    pulumi.String("SubscriptionName"),
    			ThresholdExpression: pulumi.String("{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }"),
    			Frequency:           ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList:      pulumi.StringArray{},
    			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 anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        thresholdExpression: "{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold_expression="{ \"And\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[],
        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 anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            ThresholdExpression = "{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
            MonitorArnList = new() {},
            Subscribers = new[]
            {
                new AwsNative.Ce.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Address = "abc@def.com",
                    Type = AwsNative.Ce.AnomalySubscriptionSubscriberType.Email,
                },
            },
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
        });
    
    });
    
    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.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName:    pulumi.String("SubscriptionName"),
    			ThresholdExpression: pulumi.String("{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }"),
    			MonitorArnList:      pulumi.StringArray{},
    			Subscribers: ce.AnomalySubscriptionSubscriberArray{
    				&ce.AnomalySubscriptionSubscriberArgs{
    					Address: pulumi.String("abc@def.com"),
    					Type:    ce.AnomalySubscriptionSubscriberTypeEmail,
    				},
    			},
    			Frequency: ce.AnomalySubscriptionFrequencyDaily,
    		})
    		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 anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        thresholdExpression: "{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        monitorArnList: [],
        subscribers: [{
            address: "abc@def.com",
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
        }],
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold_expression="{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        monitor_arn_list=[],
        subscribers=[{
            "address": "abc@def.com",
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
        }],
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY)
    

    Example coming soon!

    Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AwsNative = Pulumi.AwsNative;
    
    return await Deployment.RunAsync(() => 
    {
        var anomalySubscription = new AwsNative.Ce.AnomalySubscription("anomalySubscription", new()
        {
            SubscriptionName = "SubscriptionName",
            ThresholdExpression = "{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
            Frequency = AwsNative.Ce.AnomalySubscriptionFrequency.Daily,
            MonitorArnList = new() {},
            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 {
    		_, err := ce.NewAnomalySubscription(ctx, "anomalySubscription", &ce.AnomalySubscriptionArgs{
    			SubscriptionName:    pulumi.String("SubscriptionName"),
    			ThresholdExpression: pulumi.String("{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }"),
    			Frequency:           ce.AnomalySubscriptionFrequencyDaily,
    			MonitorArnList:      pulumi.StringArray{},
    			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 anomalySubscription = new aws_native.ce.AnomalySubscription("anomalySubscription", {
        subscriptionName: "SubscriptionName",
        thresholdExpression: "{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        frequency: aws_native.ce.AnomalySubscriptionFrequency.Daily,
        monitorArnList: [],
        subscribers: [{
            type: aws_native.ce.AnomalySubscriptionSubscriberType.Email,
            address: "abc@def.com",
        }],
    });
    
    import pulumi
    import pulumi_aws_native as aws_native
    
    anomaly_subscription = aws_native.ce.AnomalySubscription("anomalySubscription",
        subscription_name="SubscriptionName",
        threshold_expression="{ \"Or\": [ { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_PERCENTAGE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"100\" ] } }, { \"Dimensions\": { \"Key\": \"ANOMALY_TOTAL_IMPACT_ABSOLUTE\", \"MatchOptions\": [ \"GREATER_THAN_OR_EQUAL\" ], \"Values\": [ \"200\" ] } } ] }",
        frequency=aws_native.ce.AnomalySubscriptionFrequency.DAILY,
        monitor_arn_list=[],
        subscribers=[{
            "type": aws_native.ce.AnomalySubscriptionSubscriberType.EMAIL,
            "address": "abc@def.com",
        }])
    

    Example coming soon!

    Create AnomalySubscription Resource

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

    Constructor syntax

    new AnomalySubscription(name: string, args: AnomalySubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def AnomalySubscription(resource_name: str,
                            args: AnomalySubscriptionArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def AnomalySubscription(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            frequency: Optional[AnomalySubscriptionFrequency] = None,
                            monitor_arn_list: Optional[Sequence[str]] = None,
                            subscribers: Optional[Sequence[AnomalySubscriptionSubscriberArgs]] = None,
                            resource_tags: Optional[Sequence[_root_inputs.CreateOnlyTagArgs]] = None,
                            subscription_name: Optional[str] = None,
                            threshold: Optional[float] = None,
                            threshold_expression: Optional[str] = None)
    func NewAnomalySubscription(ctx *Context, name string, args AnomalySubscriptionArgs, opts ...ResourceOption) (*AnomalySubscription, error)
    public AnomalySubscription(string name, AnomalySubscriptionArgs args, CustomResourceOptions? opts = null)
    public AnomalySubscription(String name, AnomalySubscriptionArgs args)
    public AnomalySubscription(String name, AnomalySubscriptionArgs args, CustomResourceOptions options)
    
    type: aws-native:ce:AnomalySubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ce_anomaly_subscription" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AnomalySubscriptionArgs
    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 AnomalySubscriptionArgs
    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 AnomalySubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AnomalySubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AnomalySubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AnomalySubscription 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 AnomalySubscription resource accepts the following input properties:

    Frequency Pulumi.AwsNative.Ce.AnomalySubscriptionFrequency
    The frequency at which anomaly reports are sent over email.
    MonitorArnList List<string>
    A list of cost anomaly monitors.
    Subscribers List<Pulumi.AwsNative.Ce.Inputs.AnomalySubscriptionSubscriber>
    A list of subscriber
    ResourceTags List<Pulumi.AwsNative.Inputs.CreateOnlyTag>
    Tags to assign to subscription.
    SubscriptionName string
    The name of the subscription.
    Threshold double
    The dollar value that triggers a notification if the threshold is exceeded.
    ThresholdExpression string
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
    Frequency AnomalySubscriptionFrequency
    The frequency at which anomaly reports are sent over email.
    MonitorArnList []string
    A list of cost anomaly monitors.
    Subscribers []AnomalySubscriptionSubscriberArgs
    A list of subscriber
    ResourceTags CreateOnlyTagArgs
    Tags to assign to subscription.
    SubscriptionName string
    The name of the subscription.
    Threshold float64
    The dollar value that triggers a notification if the threshold is exceeded.
    ThresholdExpression string
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
    frequency "DAILY" | "IMMEDIATE" | "WEEKLY"
    The frequency at which anomaly reports are sent over email.
    monitor_arn_list list(string)
    A list of cost anomaly monitors.
    subscribers list(object)
    A list of subscriber
    resource_tags list(object)
    Tags to assign to subscription.
    subscription_name string
    The name of the subscription.
    threshold number
    The dollar value that triggers a notification if the threshold is exceeded.
    threshold_expression string
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
    frequency AnomalySubscriptionFrequency
    The frequency at which anomaly reports are sent over email.
    monitorArnList List<String>
    A list of cost anomaly monitors.
    subscribers List<AnomalySubscriptionSubscriber>
    A list of subscriber
    resourceTags List<CreateOnlyTag>
    Tags to assign to subscription.
    subscriptionName String
    The name of the subscription.
    threshold Double
    The dollar value that triggers a notification if the threshold is exceeded.
    thresholdExpression String
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
    frequency AnomalySubscriptionFrequency
    The frequency at which anomaly reports are sent over email.
    monitorArnList string[]
    A list of cost anomaly monitors.
    subscribers AnomalySubscriptionSubscriber[]
    A list of subscriber
    resourceTags CreateOnlyTag[]
    Tags to assign to subscription.
    subscriptionName string
    The name of the subscription.
    threshold number
    The dollar value that triggers a notification if the threshold is exceeded.
    thresholdExpression string
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
    frequency AnomalySubscriptionFrequency
    The frequency at which anomaly reports are sent over email.
    monitor_arn_list Sequence[str]
    A list of cost anomaly monitors.
    subscribers Sequence[AnomalySubscriptionSubscriberArgs]
    A list of subscriber
    resource_tags Sequence[CreateOnlyTagArgs]
    Tags to assign to subscription.
    subscription_name str
    The name of the subscription.
    threshold float
    The dollar value that triggers a notification if the threshold is exceeded.
    threshold_expression str
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.
    frequency "DAILY" | "IMMEDIATE" | "WEEKLY"
    The frequency at which anomaly reports are sent over email.
    monitorArnList List<String>
    A list of cost anomaly monitors.
    subscribers List<Property Map>
    A list of subscriber
    resourceTags List<Property Map>
    Tags to assign to subscription.
    subscriptionName String
    The name of the subscription.
    threshold Number
    The dollar value that triggers a notification if the threshold is exceeded.
    thresholdExpression String
    An Expression object in JSON String format used to specify the anomalies that you want to generate alerts for.

    Outputs

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

    AccountId string
    The accountId
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionArn string
    The AnomalySubscription Amazon Resource Name (ARN).
    AccountId string
    The accountId
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionArn string
    The AnomalySubscription Amazon Resource Name (ARN).
    account_id string
    The accountId
    id string
    The provider-assigned unique ID for this managed resource.
    subscription_arn string
    The AnomalySubscription Amazon Resource Name (ARN).
    accountId String
    The accountId
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionArn String
    The AnomalySubscription Amazon Resource Name (ARN).
    accountId string
    The accountId
    id string
    The provider-assigned unique ID for this managed resource.
    subscriptionArn string
    The AnomalySubscription Amazon Resource Name (ARN).
    account_id str
    The accountId
    id str
    The provider-assigned unique ID for this managed resource.
    subscription_arn str
    The AnomalySubscription Amazon Resource Name (ARN).
    accountId String
    The accountId
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionArn String
    The AnomalySubscription Amazon Resource Name (ARN).

    Look up Existing AnomalySubscription Resource

    Get an existing AnomalySubscription 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): AnomalySubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> AnomalySubscription
    func GetAnomalySubscription(ctx *Context, name string, id IDInput, state *AnomalySubscriptionState, opts ...ResourceOption) (*AnomalySubscription, error)
    public static AnomalySubscription Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static AnomalySubscription get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingAnomalySubscription:    type: aws-native:ce:AnomalySubscription    get:      id: ${id}
    import {
      to = aws-native_ce_anomaly_subscription.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 AnomalySubscriptionState
    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

    AnomalySubscriptionFrequency

    The frequency at which anomaly reports are sent over email.

    NameValue
    DailyDAILY
    ImmediateIMMEDIATE
    WeeklyWEEKLY
    NameValue
    AnomalySubscriptionFrequencyDailyDAILY
    AnomalySubscriptionFrequencyImmediateIMMEDIATE
    AnomalySubscriptionFrequencyWeeklyWEEKLY
    Value
    DAILY
    IMMEDIATE
    WEEKLY
    NameValue
    DailyDAILY
    ImmediateIMMEDIATE
    WeeklyWEEKLY
    NameValue
    DailyDAILY
    ImmediateIMMEDIATE
    WeeklyWEEKLY
    NameValue
    DAILYDAILY
    IMMEDIATEIMMEDIATE
    WEEKLYWEEKLY
    Value
    DAILY
    IMMEDIATE
    WEEKLY

    AnomalySubscriptionSubscriber, AnomalySubscriptionSubscriberArgs

    Address string
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    Type Pulumi.AwsNative.Ce.AnomalySubscriptionSubscriberType
    The notification delivery channel.
    Status Pulumi.AwsNative.Ce.AnomalySubscriptionSubscriberStatus
    Indicates if the subscriber accepts the notifications.
    Address string
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    Type AnomalySubscriptionSubscriberType
    The notification delivery channel.
    Status AnomalySubscriptionSubscriberStatus
    Indicates if the subscriber accepts the notifications.
    address string
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    type "EMAIL" | "SNS"
    The notification delivery channel.
    status "CONFIRMED" | "DECLINED"
    Indicates if the subscriber accepts the notifications.
    address String
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    type AnomalySubscriptionSubscriberType
    The notification delivery channel.
    status AnomalySubscriptionSubscriberStatus
    Indicates if the subscriber accepts the notifications.
    address string
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    type AnomalySubscriptionSubscriberType
    The notification delivery channel.
    status AnomalySubscriptionSubscriberStatus
    Indicates if the subscriber accepts the notifications.
    address str
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    type AnomalySubscriptionSubscriberType
    The notification delivery channel.
    status AnomalySubscriptionSubscriberStatus
    Indicates if the subscriber accepts the notifications.
    address String
    The email address or SNS Topic Amazon Resource Name (ARN), depending on the Type .
    type "EMAIL" | "SNS"
    The notification delivery channel.
    status "CONFIRMED" | "DECLINED"
    Indicates if the subscriber accepts the notifications.

    AnomalySubscriptionSubscriberStatus

    Indicates if the subscriber accepts the notifications.

    NameValue
    ConfirmedCONFIRMED
    DeclinedDECLINED
    NameValue
    AnomalySubscriptionSubscriberStatusConfirmedCONFIRMED
    AnomalySubscriptionSubscriberStatusDeclinedDECLINED
    Value
    CONFIRMED
    DECLINED
    NameValue
    ConfirmedCONFIRMED
    DeclinedDECLINED
    NameValue
    ConfirmedCONFIRMED
    DeclinedDECLINED
    NameValue
    CONFIRMEDCONFIRMED
    DECLINEDDECLINED
    Value
    CONFIRMED
    DECLINED

    AnomalySubscriptionSubscriberType

    The notification delivery channel.

    NameValue
    EmailEMAIL
    SnsSNS
    NameValue
    AnomalySubscriptionSubscriberTypeEmailEMAIL
    AnomalySubscriptionSubscriberTypeSnsSNS
    Value
    EMAIL
    SNS
    NameValue
    EmailEMAIL
    SnsSNS
    NameValue
    EmailEMAIL
    SnsSNS
    NameValue
    EMAILEMAIL
    SNSSNS
    Value
    EMAIL
    SNS

    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