1. Packages
  2. AWS Classic
  3. API Docs
  4. costexplorer
  5. AnomalySubscription

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

aws.costexplorer.AnomalySubscription

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

    Provides a CE Anomaly Subscription.

    Example Usage

    Basic Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var testAnomalyMonitor = new Aws.CostExplorer.AnomalyMonitor("testAnomalyMonitor", new()
        {
            MonitorType = "DIMENSIONAL",
            MonitorDimension = "SERVICE",
        });
    
        var testAnomalySubscription = new Aws.CostExplorer.AnomalySubscription("testAnomalySubscription", new()
        {
            Threshold = 100,
            Frequency = "DAILY",
            MonitorArnLists = new[]
            {
                testAnomalyMonitor.Arn,
            },
            Subscribers = new[]
            {
                new Aws.CostExplorer.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = "EMAIL",
                    Address = "abc@example.com",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/costexplorer"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testAnomalyMonitor, err := costexplorer.NewAnomalyMonitor(ctx, "testAnomalyMonitor", &costexplorer.AnomalyMonitorArgs{
    			MonitorType:      pulumi.String("DIMENSIONAL"),
    			MonitorDimension: pulumi.String("SERVICE"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = costexplorer.NewAnomalySubscription(ctx, "testAnomalySubscription", &costexplorer.AnomalySubscriptionArgs{
    			Threshold: pulumi.Float64(100),
    			Frequency: pulumi.String("DAILY"),
    			MonitorArnLists: pulumi.StringArray{
    				testAnomalyMonitor.Arn,
    			},
    			Subscribers: costexplorer.AnomalySubscriptionSubscriberArray{
    				&costexplorer.AnomalySubscriptionSubscriberArgs{
    					Type:    pulumi.String("EMAIL"),
    					Address: pulumi.String("abc@example.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.costexplorer.AnomalyMonitor;
    import com.pulumi.aws.costexplorer.AnomalyMonitorArgs;
    import com.pulumi.aws.costexplorer.AnomalySubscription;
    import com.pulumi.aws.costexplorer.AnomalySubscriptionArgs;
    import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionSubscriberArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testAnomalyMonitor = new AnomalyMonitor("testAnomalyMonitor", AnomalyMonitorArgs.builder()        
                .monitorType("DIMENSIONAL")
                .monitorDimension("SERVICE")
                .build());
    
            var testAnomalySubscription = new AnomalySubscription("testAnomalySubscription", AnomalySubscriptionArgs.builder()        
                .threshold(100)
                .frequency("DAILY")
                .monitorArnLists(testAnomalyMonitor.arn())
                .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                    .type("EMAIL")
                    .address("abc@example.com")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    test_anomaly_monitor = aws.costexplorer.AnomalyMonitor("testAnomalyMonitor",
        monitor_type="DIMENSIONAL",
        monitor_dimension="SERVICE")
    test_anomaly_subscription = aws.costexplorer.AnomalySubscription("testAnomalySubscription",
        threshold=100,
        frequency="DAILY",
        monitor_arn_lists=[test_anomaly_monitor.arn],
        subscribers=[aws.costexplorer.AnomalySubscriptionSubscriberArgs(
            type="EMAIL",
            address="abc@example.com",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const testAnomalyMonitor = new aws.costexplorer.AnomalyMonitor("testAnomalyMonitor", {
        monitorType: "DIMENSIONAL",
        monitorDimension: "SERVICE",
    });
    const testAnomalySubscription = new aws.costexplorer.AnomalySubscription("testAnomalySubscription", {
        threshold: 100,
        frequency: "DAILY",
        monitorArnLists: [testAnomalyMonitor.arn],
        subscribers: [{
            type: "EMAIL",
            address: "abc@example.com",
        }],
    });
    
    resources:
      testAnomalyMonitor:
        type: aws:costexplorer:AnomalyMonitor
        properties:
          monitorType: DIMENSIONAL
          monitorDimension: SERVICE
      testAnomalySubscription:
        type: aws:costexplorer:AnomalySubscription
        properties:
          threshold: 100
          frequency: DAILY
          monitorArnLists:
            - ${testAnomalyMonitor.arn}
          subscribers:
            - type: EMAIL
              address: abc@example.com
    

    Threshold Expression

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Aws.CostExplorer.AnomalySubscription("test", new()
        {
            Frequency = "DAILY",
            MonitorArnLists = new[]
            {
                aws_ce_anomaly_monitor.Test.Arn,
            },
            Subscribers = new[]
            {
                new Aws.CostExplorer.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = "EMAIL",
                    Address = "abc@example.com",
                },
            },
            ThresholdExpression = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionArgs
            {
                Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionDimensionArgs
                {
                    Key = "ANOMALY_TOTAL_IMPACT_ABSOLUTE",
                    Values = new[]
                    {
                        "100.0",
                    },
                    MatchOptions = new[]
                    {
                        "GREATER_THAN_OR_EQUAL",
                    },
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/costexplorer"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := costexplorer.NewAnomalySubscription(ctx, "test", &costexplorer.AnomalySubscriptionArgs{
    			Frequency: pulumi.String("DAILY"),
    			MonitorArnLists: pulumi.StringArray{
    				aws_ce_anomaly_monitor.Test.Arn,
    			},
    			Subscribers: costexplorer.AnomalySubscriptionSubscriberArray{
    				&costexplorer.AnomalySubscriptionSubscriberArgs{
    					Type:    pulumi.String("EMAIL"),
    					Address: pulumi.String("abc@example.com"),
    				},
    			},
    			ThresholdExpression: &costexplorer.AnomalySubscriptionThresholdExpressionArgs{
    				Dimension: &costexplorer.AnomalySubscriptionThresholdExpressionDimensionArgs{
    					Key: pulumi.String("ANOMALY_TOTAL_IMPACT_ABSOLUTE"),
    					Values: pulumi.StringArray{
    						pulumi.String("100.0"),
    					},
    					MatchOptions: pulumi.StringArray{
    						pulumi.String("GREATER_THAN_OR_EQUAL"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.costexplorer.AnomalySubscription;
    import com.pulumi.aws.costexplorer.AnomalySubscriptionArgs;
    import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionSubscriberArgs;
    import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionArgs;
    import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionDimensionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var test = new AnomalySubscription("test", AnomalySubscriptionArgs.builder()        
                .frequency("DAILY")
                .monitorArnLists(aws_ce_anomaly_monitor.test().arn())
                .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                    .type("EMAIL")
                    .address("abc@example.com")
                    .build())
                .thresholdExpression(AnomalySubscriptionThresholdExpressionArgs.builder()
                    .dimension(AnomalySubscriptionThresholdExpressionDimensionArgs.builder()
                        .key("ANOMALY_TOTAL_IMPACT_ABSOLUTE")
                        .values("100.0")
                        .matchOptions("GREATER_THAN_OR_EQUAL")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.costexplorer.AnomalySubscription("test",
        frequency="DAILY",
        monitor_arn_lists=[aws_ce_anomaly_monitor["test"]["arn"]],
        subscribers=[aws.costexplorer.AnomalySubscriptionSubscriberArgs(
            type="EMAIL",
            address="abc@example.com",
        )],
        threshold_expression=aws.costexplorer.AnomalySubscriptionThresholdExpressionArgs(
            dimension=aws.costexplorer.AnomalySubscriptionThresholdExpressionDimensionArgs(
                key="ANOMALY_TOTAL_IMPACT_ABSOLUTE",
                values=["100.0"],
                match_options=["GREATER_THAN_OR_EQUAL"],
            ),
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = new aws.costexplorer.AnomalySubscription("test", {
        frequency: "DAILY",
        monitorArnLists: [aws_ce_anomaly_monitor.test.arn],
        subscribers: [{
            type: "EMAIL",
            address: "abc@example.com",
        }],
        thresholdExpression: {
            dimension: {
                key: "ANOMALY_TOTAL_IMPACT_ABSOLUTE",
                values: ["100.0"],
                matchOptions: ["GREATER_THAN_OR_EQUAL"],
            },
        },
    });
    
    resources:
      test:
        type: aws:costexplorer:AnomalySubscription
        properties:
          frequency: DAILY
          monitorArnLists:
            - ${aws_ce_anomaly_monitor.test.arn}
          subscribers:
            - type: EMAIL
              address: abc@example.com
          thresholdExpression:
            dimension:
              key: ANOMALY_TOTAL_IMPACT_ABSOLUTE
              values:
                - '100.0'
              matchOptions:
                - GREATER_THAN_OR_EQUAL
    

    SNS Example

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var costAnomalyUpdates = new Aws.Sns.Topic("costAnomalyUpdates");
    
        var snsTopicPolicy = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            PolicyId = "__default_policy_ID",
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Sid = "AWSAnomalyDetectionSNSPublishingPermissions",
                    Actions = new[]
                    {
                        "SNS:Publish",
                    },
                    Effect = "Allow",
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "Service",
                            Identifiers = new[]
                            {
                                "costalerts.amazonaws.com",
                            },
                        },
                    },
                    Resources = new[]
                    {
                        costAnomalyUpdates.Arn,
                    },
                },
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Sid = "__default_statement_ID",
                    Actions = new[]
                    {
                        "SNS:Subscribe",
                        "SNS:SetTopicAttributes",
                        "SNS:RemovePermission",
                        "SNS:Receive",
                        "SNS:Publish",
                        "SNS:ListSubscriptionsByTopic",
                        "SNS:GetTopicAttributes",
                        "SNS:DeleteTopic",
                        "SNS:AddPermission",
                    },
                    Conditions = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementConditionInputArgs
                        {
                            Test = "StringEquals",
                            Variable = "AWS:SourceOwner",
                            Values = new[]
                            {
                                @var.Account_id,
                            },
                        },
                    },
                    Effect = "Allow",
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "AWS",
                            Identifiers = new[]
                            {
                                "*",
                            },
                        },
                    },
                    Resources = new[]
                    {
                        costAnomalyUpdates.Arn,
                    },
                },
            },
        });
    
        var @default = new Aws.Sns.TopicPolicy("default", new()
        {
            Arn = costAnomalyUpdates.Arn,
            Policy = snsTopicPolicy.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
        });
    
        var anomalyMonitor = new Aws.CostExplorer.AnomalyMonitor("anomalyMonitor", new()
        {
            MonitorType = "DIMENSIONAL",
            MonitorDimension = "SERVICE",
        });
    
        var realtimeSubscription = new Aws.CostExplorer.AnomalySubscription("realtimeSubscription", new()
        {
            Threshold = 0,
            Frequency = "IMMEDIATE",
            MonitorArnLists = new[]
            {
                anomalyMonitor.Arn,
            },
            Subscribers = new[]
            {
                new Aws.CostExplorer.Inputs.AnomalySubscriptionSubscriberArgs
                {
                    Type = "SNS",
                    Address = costAnomalyUpdates.Arn,
                },
            },
        }, new CustomResourceOptions
        {
            DependsOn = new[]
            {
                @default,
            },
        });
    
    });
    

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.sns.Topic;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.sns.TopicPolicy;
    import com.pulumi.aws.sns.TopicPolicyArgs;
    import com.pulumi.aws.costexplorer.AnomalyMonitor;
    import com.pulumi.aws.costexplorer.AnomalyMonitorArgs;
    import com.pulumi.aws.costexplorer.AnomalySubscription;
    import com.pulumi.aws.costexplorer.AnomalySubscriptionArgs;
    import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionSubscriberArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var costAnomalyUpdates = new Topic("costAnomalyUpdates");
    
            final var snsTopicPolicy = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .policyId("__default_policy_ID")
                .statements(            
                    GetPolicyDocumentStatementArgs.builder()
                        .sid("AWSAnomalyDetectionSNSPublishingPermissions")
                        .actions("SNS:Publish")
                        .effect("Allow")
                        .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                            .type("Service")
                            .identifiers("costalerts.amazonaws.com")
                            .build())
                        .resources(costAnomalyUpdates.arn())
                        .build(),
                    GetPolicyDocumentStatementArgs.builder()
                        .sid("__default_statement_ID")
                        .actions(                    
                            "SNS:Subscribe",
                            "SNS:SetTopicAttributes",
                            "SNS:RemovePermission",
                            "SNS:Receive",
                            "SNS:Publish",
                            "SNS:ListSubscriptionsByTopic",
                            "SNS:GetTopicAttributes",
                            "SNS:DeleteTopic",
                            "SNS:AddPermission")
                        .conditions(GetPolicyDocumentStatementConditionArgs.builder()
                            .test("StringEquals")
                            .variable("AWS:SourceOwner")
                            .values(var_.account-id())
                            .build())
                        .effect("Allow")
                        .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                            .type("AWS")
                            .identifiers("*")
                            .build())
                        .resources(costAnomalyUpdates.arn())
                        .build())
                .build());
    
            var default_ = new TopicPolicy("default", TopicPolicyArgs.builder()        
                .arn(costAnomalyUpdates.arn())
                .policy(snsTopicPolicy.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(snsTopicPolicy -> snsTopicPolicy.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())))
                .build());
    
            var anomalyMonitor = new AnomalyMonitor("anomalyMonitor", AnomalyMonitorArgs.builder()        
                .monitorType("DIMENSIONAL")
                .monitorDimension("SERVICE")
                .build());
    
            var realtimeSubscription = new AnomalySubscription("realtimeSubscription", AnomalySubscriptionArgs.builder()        
                .threshold(0)
                .frequency("IMMEDIATE")
                .monitorArnLists(anomalyMonitor.arn())
                .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                    .type("SNS")
                    .address(costAnomalyUpdates.arn())
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    cost_anomaly_updates = aws.sns.Topic("costAnomalyUpdates")
    sns_topic_policy = pulumi.Output.all(cost_anomaly_updates.arn, cost_anomaly_updates.arn).apply(lambda costAnomalyUpdatesArn, costAnomalyUpdatesArn1: aws.iam.get_policy_document_output(policy_id="__default_policy_ID",
        statements=[
            aws.iam.GetPolicyDocumentStatementArgs(
                sid="AWSAnomalyDetectionSNSPublishingPermissions",
                actions=["SNS:Publish"],
                effect="Allow",
                principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(
                    type="Service",
                    identifiers=["costalerts.amazonaws.com"],
                )],
                resources=[cost_anomaly_updates_arn],
            ),
            aws.iam.GetPolicyDocumentStatementArgs(
                sid="__default_statement_ID",
                actions=[
                    "SNS:Subscribe",
                    "SNS:SetTopicAttributes",
                    "SNS:RemovePermission",
                    "SNS:Receive",
                    "SNS:Publish",
                    "SNS:ListSubscriptionsByTopic",
                    "SNS:GetTopicAttributes",
                    "SNS:DeleteTopic",
                    "SNS:AddPermission",
                ],
                conditions=[aws.iam.GetPolicyDocumentStatementConditionArgs(
                    test="StringEquals",
                    variable="AWS:SourceOwner",
                    values=[var["account-id"]],
                )],
                effect="Allow",
                principals=[aws.iam.GetPolicyDocumentStatementPrincipalArgs(
                    type="AWS",
                    identifiers=["*"],
                )],
                resources=[cost_anomaly_updates_arn1],
            ),
        ]))
    default = aws.sns.TopicPolicy("default",
        arn=cost_anomaly_updates.arn,
        policy=sns_topic_policy.json)
    anomaly_monitor = aws.costexplorer.AnomalyMonitor("anomalyMonitor",
        monitor_type="DIMENSIONAL",
        monitor_dimension="SERVICE")
    realtime_subscription = aws.costexplorer.AnomalySubscription("realtimeSubscription",
        threshold=0,
        frequency="IMMEDIATE",
        monitor_arn_lists=[anomaly_monitor.arn],
        subscribers=[aws.costexplorer.AnomalySubscriptionSubscriberArgs(
            type="SNS",
            address=cost_anomaly_updates.arn,
        )],
        opts=pulumi.ResourceOptions(depends_on=[default]))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const costAnomalyUpdates = new aws.sns.Topic("costAnomalyUpdates", {});
    const snsTopicPolicy = pulumi.all([costAnomalyUpdates.arn, costAnomalyUpdates.arn]).apply(([costAnomalyUpdatesArn, costAnomalyUpdatesArn1]) => aws.iam.getPolicyDocumentOutput({
        policyId: "__default_policy_ID",
        statements: [
            {
                sid: "AWSAnomalyDetectionSNSPublishingPermissions",
                actions: ["SNS:Publish"],
                effect: "Allow",
                principals: [{
                    type: "Service",
                    identifiers: ["costalerts.amazonaws.com"],
                }],
                resources: [costAnomalyUpdatesArn],
            },
            {
                sid: "__default_statement_ID",
                actions: [
                    "SNS:Subscribe",
                    "SNS:SetTopicAttributes",
                    "SNS:RemovePermission",
                    "SNS:Receive",
                    "SNS:Publish",
                    "SNS:ListSubscriptionsByTopic",
                    "SNS:GetTopicAttributes",
                    "SNS:DeleteTopic",
                    "SNS:AddPermission",
                ],
                conditions: [{
                    test: "StringEquals",
                    variable: "AWS:SourceOwner",
                    values: [_var["account-id"]],
                }],
                effect: "Allow",
                principals: [{
                    type: "AWS",
                    identifiers: ["*"],
                }],
                resources: [costAnomalyUpdatesArn1],
            },
        ],
    }));
    const _default = new aws.sns.TopicPolicy("default", {
        arn: costAnomalyUpdates.arn,
        policy: snsTopicPolicy.apply(snsTopicPolicy => snsTopicPolicy.json),
    });
    const anomalyMonitor = new aws.costexplorer.AnomalyMonitor("anomalyMonitor", {
        monitorType: "DIMENSIONAL",
        monitorDimension: "SERVICE",
    });
    const realtimeSubscription = new aws.costexplorer.AnomalySubscription("realtimeSubscription", {
        threshold: 0,
        frequency: "IMMEDIATE",
        monitorArnLists: [anomalyMonitor.arn],
        subscribers: [{
            type: "SNS",
            address: costAnomalyUpdates.arn,
        }],
    }, {
        dependsOn: [_default],
    });
    
    resources:
      costAnomalyUpdates:
        type: aws:sns:Topic
      default:
        type: aws:sns:TopicPolicy
        properties:
          arn: ${costAnomalyUpdates.arn}
          policy: ${snsTopicPolicy.json}
      anomalyMonitor:
        type: aws:costexplorer:AnomalyMonitor
        properties:
          monitorType: DIMENSIONAL
          monitorDimension: SERVICE
      realtimeSubscription:
        type: aws:costexplorer:AnomalySubscription
        properties:
          threshold: 0
          frequency: IMMEDIATE
          monitorArnLists:
            - ${anomalyMonitor.arn}
          subscribers:
            - type: SNS
              address: ${costAnomalyUpdates.arn}
        options:
          dependson:
            - ${default}
    variables:
      snsTopicPolicy:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            policyId: __default_policy_ID
            statements:
              - sid: AWSAnomalyDetectionSNSPublishingPermissions
                actions:
                  - SNS:Publish
                effect: Allow
                principals:
                  - type: Service
                    identifiers:
                      - costalerts.amazonaws.com
                resources:
                  - ${costAnomalyUpdates.arn}
              - sid: __default_statement_ID
                actions:
                  - SNS:Subscribe
                  - SNS:SetTopicAttributes
                  - SNS:RemovePermission
                  - SNS:Receive
                  - SNS:Publish
                  - SNS:ListSubscriptionsByTopic
                  - SNS:GetTopicAttributes
                  - SNS:DeleteTopic
                  - SNS:AddPermission
                conditions:
                  - test: StringEquals
                    variable: AWS:SourceOwner
                    values:
                      - ${var"account-id"[%!s(MISSING)]}
                effect: Allow
                principals:
                  - type: AWS
                    identifiers:
                      - '*'
                resources:
                  - ${costAnomalyUpdates.arn}
    

    Create AnomalySubscription Resource

    new AnomalySubscription(name: string, args: AnomalySubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def AnomalySubscription(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            account_id: Optional[str] = None,
                            frequency: Optional[str] = None,
                            monitor_arn_lists: Optional[Sequence[str]] = None,
                            name: Optional[str] = None,
                            subscribers: Optional[Sequence[AnomalySubscriptionSubscriberArgs]] = None,
                            tags: Optional[Mapping[str, str]] = None,
                            threshold: Optional[float] = None,
                            threshold_expression: Optional[AnomalySubscriptionThresholdExpressionArgs] = None)
    @overload
    def AnomalySubscription(resource_name: str,
                            args: AnomalySubscriptionArgs,
                            opts: Optional[ResourceOptions] = 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:costexplorer:AnomalySubscription
    properties: # The arguments to resource properties.
    options: # 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.
    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

    The AnomalySubscription resource accepts the following input properties:

    Frequency string

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    MonitorArnLists List<string>

    A list of cost anomaly monitors.

    Subscribers List<AnomalySubscriptionSubscriberArgs>

    A subscriber configuration. Multiple subscribers can be defined.

    AccountId string

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    Name string

    The name for the subscription.

    Tags Dictionary<string, string>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Threshold double

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    ThresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    Frequency string

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    MonitorArnLists []string

    A list of cost anomaly monitors.

    Subscribers []AnomalySubscriptionSubscriberArgs

    A subscriber configuration. Multiple subscribers can be defined.

    AccountId string

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    Name string

    The name for the subscription.

    Tags map[string]string

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Threshold float64

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    ThresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    frequency String

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitorArnLists List<String>

    A list of cost anomaly monitors.

    subscribers List<AnomalySubscriptionSubscriberArgs>

    A subscriber configuration. Multiple subscribers can be defined.

    accountId String

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    name String

    The name for the subscription.

    tags Map<String,String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    threshold Double

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    thresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    frequency string

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitorArnLists string[]

    A list of cost anomaly monitors.

    subscribers AnomalySubscriptionSubscriberArgs[]

    A subscriber configuration. Multiple subscribers can be defined.

    accountId string

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    name string

    The name for the subscription.

    tags {[key: string]: string}

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    threshold number

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    thresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    frequency str

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitor_arn_lists Sequence[str]

    A list of cost anomaly monitors.

    subscribers Sequence[AnomalySubscriptionSubscriberArgs]

    A subscriber configuration. Multiple subscribers can be defined.

    account_id str

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    name str

    The name for the subscription.

    tags Mapping[str, str]

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    threshold float

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    threshold_expression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    frequency String

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitorArnLists List<String>

    A list of cost anomaly monitors.

    subscribers List<Property Map>

    A subscriber configuration. Multiple subscribers can be defined.

    accountId String

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    name String

    The name for the subscription.

    tags Map<String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    threshold Number

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    thresholdExpression Property Map

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    Outputs

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

    Arn string

    ARN of the anomaly subscription.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll Dictionary<string, string>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Arn string

    ARN of the anomaly subscription.

    Id string

    The provider-assigned unique ID for this managed resource.

    TagsAll map[string]string

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    arn String

    ARN of the anomaly subscription.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String,String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    arn string

    ARN of the anomaly subscription.

    id string

    The provider-assigned unique ID for this managed resource.

    tagsAll {[key: string]: string}

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    arn str

    ARN of the anomaly subscription.

    id str

    The provider-assigned unique ID for this managed resource.

    tags_all Mapping[str, str]

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    arn String

    ARN of the anomaly subscription.

    id String

    The provider-assigned unique ID for this managed resource.

    tagsAll Map<String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    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>, state?: AnomalySubscriptionState, opts?: CustomResourceOptions): AnomalySubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            arn: Optional[str] = None,
            frequency: Optional[str] = None,
            monitor_arn_lists: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            subscribers: Optional[Sequence[AnomalySubscriptionSubscriberArgs]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            threshold: Optional[float] = None,
            threshold_expression: Optional[AnomalySubscriptionThresholdExpressionArgs] = 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, AnomalySubscriptionState? state, CustomResourceOptions? opts = null)
    public static AnomalySubscription get(String name, Output<String> id, AnomalySubscriptionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    Arn string

    ARN of the anomaly subscription.

    Frequency string

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    MonitorArnLists List<string>

    A list of cost anomaly monitors.

    Name string

    The name for the subscription.

    Subscribers List<AnomalySubscriptionSubscriberArgs>

    A subscriber configuration. Multiple subscribers can be defined.

    Tags Dictionary<string, string>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll Dictionary<string, string>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Threshold double

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    ThresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    AccountId string

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    Arn string

    ARN of the anomaly subscription.

    Frequency string

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    MonitorArnLists []string

    A list of cost anomaly monitors.

    Name string

    The name for the subscription.

    Subscribers []AnomalySubscriptionSubscriberArgs

    A subscriber configuration. Multiple subscribers can be defined.

    Tags map[string]string

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    TagsAll map[string]string

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Threshold float64

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    ThresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    accountId String

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    arn String

    ARN of the anomaly subscription.

    frequency String

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitorArnLists List<String>

    A list of cost anomaly monitors.

    name String

    The name for the subscription.

    subscribers List<AnomalySubscriptionSubscriberArgs>

    A subscriber configuration. Multiple subscribers can be defined.

    tags Map<String,String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String,String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    threshold Double

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    thresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    accountId string

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    arn string

    ARN of the anomaly subscription.

    frequency string

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitorArnLists string[]

    A list of cost anomaly monitors.

    name string

    The name for the subscription.

    subscribers AnomalySubscriptionSubscriberArgs[]

    A subscriber configuration. Multiple subscribers can be defined.

    tags {[key: string]: string}

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll {[key: string]: string}

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    threshold number

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    thresholdExpression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    account_id str

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    arn str

    ARN of the anomaly subscription.

    frequency str

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitor_arn_lists Sequence[str]

    A list of cost anomaly monitors.

    name str

    The name for the subscription.

    subscribers Sequence[AnomalySubscriptionSubscriberArgs]

    A subscriber configuration. Multiple subscribers can be defined.

    tags Mapping[str, str]

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tags_all Mapping[str, str]

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    threshold float

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    threshold_expression AnomalySubscriptionThresholdExpressionArgs

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    accountId String

    The unique identifier for the AWS account in which the anomaly subscription ought to be created.

    arn String

    ARN of the anomaly subscription.

    frequency String

    The frequency that anomaly reports are sent. Valid Values: DAILY | IMMEDIATE | WEEKLY.

    monitorArnLists List<String>

    A list of cost anomaly monitors.

    name String

    The name for the subscription.

    subscribers List<Property Map>

    A subscriber configuration. Multiple subscribers can be defined.

    tags Map<String>

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    tagsAll Map<String>

    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    threshold Number

    The dollar value that triggers a notification if the threshold is exceeded. Depracated, use threshold_expression instead.

    Deprecated:

    use threshold_expression instead

    thresholdExpression Property Map

    An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

    Supporting Types

    AnomalySubscriptionSubscriber

    Address string

    The address of the subscriber. If type is SNS, this will be the arn of the sns topic. If type is EMAIL, this will be the destination email address.

    Type string

    The type of subscription. Valid Values: SNS | EMAIL.

    Address string

    The address of the subscriber. If type is SNS, this will be the arn of the sns topic. If type is EMAIL, this will be the destination email address.

    Type string

    The type of subscription. Valid Values: SNS | EMAIL.

    address String

    The address of the subscriber. If type is SNS, this will be the arn of the sns topic. If type is EMAIL, this will be the destination email address.

    type String

    The type of subscription. Valid Values: SNS | EMAIL.

    address string

    The address of the subscriber. If type is SNS, this will be the arn of the sns topic. If type is EMAIL, this will be the destination email address.

    type string

    The type of subscription. Valid Values: SNS | EMAIL.

    address str

    The address of the subscriber. If type is SNS, this will be the arn of the sns topic. If type is EMAIL, this will be the destination email address.

    type str

    The type of subscription. Valid Values: SNS | EMAIL.

    address String

    The address of the subscriber. If type is SNS, this will be the arn of the sns topic. If type is EMAIL, this will be the destination email address.

    type String

    The type of subscription. Valid Values: SNS | EMAIL.

    AnomalySubscriptionThresholdExpression

    Ands List<AnomalySubscriptionThresholdExpressionAnd>

    Return results that match both Dimension objects.

    CostCategory AnomalySubscriptionThresholdExpressionCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionDimension

    Configuration block for the specific Dimension to use for.

    Not AnomalySubscriptionThresholdExpressionNot

    Return results that match both Dimension object.

    Ors List<AnomalySubscriptionThresholdExpressionOr>

    Return results that match both Dimension object.

    Tags AnomalySubscriptionThresholdExpressionTags

    Configuration block for the specific Tag to use for. See Tags below.

    Ands []AnomalySubscriptionThresholdExpressionAnd

    Return results that match both Dimension objects.

    CostCategory AnomalySubscriptionThresholdExpressionCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionDimension

    Configuration block for the specific Dimension to use for.

    Not AnomalySubscriptionThresholdExpressionNot

    Return results that match both Dimension object.

    Ors []AnomalySubscriptionThresholdExpressionOr

    Return results that match both Dimension object.

    Tags AnomalySubscriptionThresholdExpressionTags

    Configuration block for the specific Tag to use for. See Tags below.

    ands List<AnomalySubscriptionThresholdExpressionAnd>

    Return results that match both Dimension objects.

    costCategory AnomalySubscriptionThresholdExpressionCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionDimension

    Configuration block for the specific Dimension to use for.

    not AnomalySubscriptionThresholdExpressionNot

    Return results that match both Dimension object.

    ors List<AnomalySubscriptionThresholdExpressionOr>

    Return results that match both Dimension object.

    tags AnomalySubscriptionThresholdExpressionTags

    Configuration block for the specific Tag to use for. See Tags below.

    ands AnomalySubscriptionThresholdExpressionAnd[]

    Return results that match both Dimension objects.

    costCategory AnomalySubscriptionThresholdExpressionCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionDimension

    Configuration block for the specific Dimension to use for.

    not AnomalySubscriptionThresholdExpressionNot

    Return results that match both Dimension object.

    ors AnomalySubscriptionThresholdExpressionOr[]

    Return results that match both Dimension object.

    tags AnomalySubscriptionThresholdExpressionTags

    Configuration block for the specific Tag to use for. See Tags below.

    ands Sequence[AnomalySubscriptionThresholdExpressionAnd]

    Return results that match both Dimension objects.

    cost_category AnomalySubscriptionThresholdExpressionCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionDimension

    Configuration block for the specific Dimension to use for.

    not_ AnomalySubscriptionThresholdExpressionNot

    Return results that match both Dimension object.

    ors Sequence[AnomalySubscriptionThresholdExpressionOr]

    Return results that match both Dimension object.

    tags AnomalySubscriptionThresholdExpressionTags

    Configuration block for the specific Tag to use for. See Tags below.

    ands List<Property Map>

    Return results that match both Dimension objects.

    costCategory Property Map

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension Property Map

    Configuration block for the specific Dimension to use for.

    not Property Map

    Return results that match both Dimension object.

    ors List<Property Map>

    Return results that match both Dimension object.

    tags Property Map

    Configuration block for the specific Tag to use for. See Tags below.

    AnomalySubscriptionThresholdExpressionAnd

    CostCategory AnomalySubscriptionThresholdExpressionAndCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionAndDimension

    Configuration block for the specific Dimension to use for.

    Tags AnomalySubscriptionThresholdExpressionAndTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    CostCategory AnomalySubscriptionThresholdExpressionAndCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionAndDimension

    Configuration block for the specific Dimension to use for.

    Tags AnomalySubscriptionThresholdExpressionAndTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory AnomalySubscriptionThresholdExpressionAndCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionAndDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionAndTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory AnomalySubscriptionThresholdExpressionAndCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionAndDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionAndTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    cost_category AnomalySubscriptionThresholdExpressionAndCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionAndDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionAndTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory Property Map

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension Property Map

    Configuration block for the specific Dimension to use for.

    tags Property Map

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    AnomalySubscriptionThresholdExpressionAndCostCategory

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionAndDimension

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionAndTags

    Key string

    Key for the tag.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Key for the tag.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Key for the tag.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Key for the tag.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionCostCategory

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionDimension

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionNot

    CostCategory AnomalySubscriptionThresholdExpressionNotCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionNotDimension

    Configuration block for the specific Dimension to use for.

    Tags AnomalySubscriptionThresholdExpressionNotTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    CostCategory AnomalySubscriptionThresholdExpressionNotCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionNotDimension

    Configuration block for the specific Dimension to use for.

    Tags AnomalySubscriptionThresholdExpressionNotTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory AnomalySubscriptionThresholdExpressionNotCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionNotDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionNotTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory AnomalySubscriptionThresholdExpressionNotCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionNotDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionNotTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    cost_category AnomalySubscriptionThresholdExpressionNotCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionNotDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionNotTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory Property Map

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension Property Map

    Configuration block for the specific Dimension to use for.

    tags Property Map

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    AnomalySubscriptionThresholdExpressionNotCostCategory

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionNotDimension

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionNotTags

    Key string

    Key for the tag.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Key for the tag.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Key for the tag.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Key for the tag.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionOr

    CostCategory AnomalySubscriptionThresholdExpressionOrCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionOrDimension

    Configuration block for the specific Dimension to use for.

    Tags AnomalySubscriptionThresholdExpressionOrTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    CostCategory AnomalySubscriptionThresholdExpressionOrCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    Dimension AnomalySubscriptionThresholdExpressionOrDimension

    Configuration block for the specific Dimension to use for.

    Tags AnomalySubscriptionThresholdExpressionOrTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory AnomalySubscriptionThresholdExpressionOrCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionOrDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionOrTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory AnomalySubscriptionThresholdExpressionOrCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionOrDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionOrTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    cost_category AnomalySubscriptionThresholdExpressionOrCostCategory

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension AnomalySubscriptionThresholdExpressionOrDimension

    Configuration block for the specific Dimension to use for.

    tags AnomalySubscriptionThresholdExpressionOrTags

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    costCategory Property Map

    Configuration block for the filter that's based on values. See Cost Category below.

    dimension Property Map

    Configuration block for the specific Dimension to use for.

    tags Property Map

    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    AnomalySubscriptionThresholdExpressionOrCostCategory

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionOrDimension

    Key string

    Unique name of the Cost Category.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Unique name of the Cost Category.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Unique name of the Cost Category.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Unique name of the Cost Category.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Unique name of the Cost Category.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionOrTags

    Key string

    Key for the tag.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Key for the tag.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Key for the tag.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Key for the tag.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    AnomalySubscriptionThresholdExpressionTags

    Key string

    Key for the tag.

    MatchOptions List<string>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values List<string>

    Specific value of the Cost Category.

    Key string

    Key for the tag.

    MatchOptions []string

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    Values []string

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    key string

    Key for the tag.

    matchOptions string[]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values string[]

    Specific value of the Cost Category.

    key str

    Key for the tag.

    match_options Sequence[str]

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values Sequence[str]

    Specific value of the Cost Category.

    key String

    Key for the tag.

    matchOptions List<String>

    Match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions is EQUALS and CASE_SENSITIVE. Valid values are: EQUALS, ABSENT, STARTS_WITH, ENDS_WITH, CONTAINS, CASE_SENSITIVE, CASE_INSENSITIVE.

    values List<String>

    Specific value of the Cost Category.

    Import

    aws_ce_anomaly_subscription can be imported using the id, e.g.

     $ pulumi import aws:costexplorer/anomalySubscription:AnomalySubscription example AnomalySubscriptionARN
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the aws Terraform Provider.

    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi