Get a detailed overview of this resourceList the top 5 use cases for this resourceBuild a program using aws.costexplorer.AnomalySubscriptionRepository[AWS Classic pulumi/pulumi-aws](https://github.com/pulumi/pulumi-aws)LicenseApache-2.0NotesThis Pulumi package is based on the [`aws` Terraform Provider](https://github.com/hashicorp/terraform-provider-aws).

1. [Packages](/content/registry/index.html)
2. [Packages](/content/registry/packages/index.html)
3. [AWS](/content/registry/packages/aws/index.html)
4. [API Docs](/content/registry/packages/aws/api-docs/index.html)
5. [costexplorer](/content/registry/packages/aws/api-docs/costexplorer/index.html)
6. [AnomalySubscription](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/index.html)

AWS v7.32.0, May 29 26

AWS v7.32.0, May 29 26

Viewing docs for AWS v7.32.0

published on Friday, May 29, 2026 by Pulumi

[Schema (JSON)](/content/registry/packages/aws/schema.json)

[pulumi/pulumi-aws](https://github.com/pulumi/pulumi-aws)

v7.32.0 (7.x, latest)v6.83.1 (6.x)v5.43.0 (5.x)

# aws.costexplorer.AnomalySubscription [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#aws-costexplorer-anomalysubscription/index.html)

Explore with Neo

[Explain this resource](https://app.pulumi.com/neo?prompt=Explain+the+resource+aws.costexplorer.AnomalySubscription.+Provide+a+detailed+overview+of+its+purpose%2C+architecture%2C+and+typical+responsibilities.&prefer_signup=true) [Show real-world scenarios](https://app.pulumi.com/neo?prompt=List+the+top+five+real-world+scenarios+where+aws.costexplorer.AnomalySubscription+delivers+the+most+value.+Describe+why+it+is+useful+for+each.&prefer_signup=true) [Provision a new instance](https://app.pulumi.com/neo?prompt=Generate+a+Pulumi+program+that+provisions+aws.costexplorer.AnomalySubscription.+Include+any+required+configuration+and+showcase+best+practices.&prefer_signup=true)

Viewing docs for AWS v7.32.0

published on Friday, May 29, 2026 by Pulumi

[Schema (JSON)](/content/registry/packages/aws/schema.json)

[pulumi/pulumi-aws](https://github.com/pulumi/pulumi-aws)

v7.32.0 (7.x, latest)v6.83.1 (6.x)v5.43.0 (5.x)

## On this page

## On this page

- [Example Usage](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#example-usage/index.html)
- [Basic Example](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#basic-example/index.html)
- [Threshold Expression Example](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#threshold-expression-example/index.html)
- [Using a Percentage Threshold](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#using-a-percentage-threshold/index.html)
- [Using an and Expression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#using-an-and-expression/index.html)
- [SNS Example](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#sns-example/index.html)
- [Create AnomalySubscription Resource](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#create/index.html)
- [Constructor syntax](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#constructor-syntax/index.html)
- [Constructor example](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#constructor-example/index.html)
- [AnomalySubscription Resource Properties](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#properties/index.html)
- [Inputs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html)
- [Outputs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#outputs/index.html)
- [Look up Existing AnomalySubscription Resource](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#look-up/index.html)
- [Supporting Types](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#supporting-types/index.html)
- [Import](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#import/index.html)
- [Identity Schema](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#identity-schema/index.html)
- [Package Details](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#package-details/index.html)

- Copy Page

- [Request a Change](https://github.com/pulumi/registry/issues/new?body=File:%20[themes%2fdefault%2fcontent/%2fregistry%2fpackages%2faws%2fapi-docs%2fcostexplorer%2fanomalysubscription](https%3a%2f%2fwww.pulumi.com%2fregistry%2fpackages%2faws%2fapi-docs%2fcostexplorer%2fanomalysubscription%2f))

[Scroll to top](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/# "Scroll to top"/index.html)

Provides a CE Anomaly Subscription.

## Example Usage [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#example-usage/index.html)

### Basic Example [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#basic-example/index.html)

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```typescript
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.costexplorer.AnomalyMonitor("test", {
    name: "AWSServiceMonitor",
    monitorType: "DIMENSIONAL",
    monitorDimension: "SERVICE",
});
const testAnomalySubscription = new aws.costexplorer.AnomalySubscription("test", {
    name: "DAILYSUBSCRIPTION",
    frequency: "DAILY",
    monitorArnLists: [test.arn],
    subscribers: [{\
        type: "EMAIL",\
        address: "abc@example.com",\
    }],
    thresholdExpression: {
        dimension: {
            key: "ANOMALY_TOTAL_IMPACT_ABSOLUTE",
            matchOptions: ["GREATER_THAN_OR_EQUAL"],
            values: ["100"],
        },
    },
});
```

Copy

```python
import pulumi
import pulumi_aws as aws

test = aws.costexplorer.AnomalyMonitor("test",
    name="AWSServiceMonitor",
    monitor_type="DIMENSIONAL",
    monitor_dimension="SERVICE")
test_anomaly_subscription = aws.costexplorer.AnomalySubscription("test",
    name="DAILYSUBSCRIPTION",
    frequency="DAILY",
    monitor_arn_lists=[test.arn],
    subscribers=[{\
        "type": "EMAIL",\
        "address": "abc@example.com",\
    }],
    threshold_expression={
        "dimension": {
            "key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE",
            "match_options": ["GREATER_THAN_OR_EQUAL"],
            "values": ["100"],
        },
    })
```

Copy

```go
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/costexplorer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := costexplorer.NewAnomalyMonitor(ctx, "test", &costexplorer.AnomalyMonitorArgs{
			Name:             pulumi.String("AWSServiceMonitor"),
			MonitorType:      pulumi.String("DIMENSIONAL"),
			MonitorDimension: pulumi.String("SERVICE"),
		})
		if err != nil {
			return err
		}
		_, err = costexplorer.NewAnomalySubscription(ctx, "test", &costexplorer.AnomalySubscriptionArgs{
			Name:      pulumi.String("DAILYSUBSCRIPTION"),
			Frequency: pulumi.String("DAILY"),
			MonitorArnLists: pulumi.StringArray{
				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"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("GREATER_THAN_OR_EQUAL"),
					},
					Values: pulumi.StringArray{
						pulumi.String("100"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
```

Copy

```csharp
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var test = new Aws.CostExplorer.AnomalyMonitor("test", new()
    {
        Name = "AWSServiceMonitor",
        MonitorType = "DIMENSIONAL",
        MonitorDimension = "SERVICE",
    });

var testAnomalySubscription = new Aws.CostExplorer.AnomalySubscription("test", new()
    {
        Name = "DAILYSUBSCRIPTION",
        Frequency = "DAILY",
        MonitorArnLists = new[]
        {
            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",
                MatchOptions = new[]
                {
                    "GREATER_THAN_OR_EQUAL",
                },
                Values = new[]
                {
                    "100",
                },
            },
        },
    });

});
```

Copy

```java
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 com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionArgs;
import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionDimensionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 AnomalyMonitor("test", AnomalyMonitorArgs.builder()
            .name("AWSServiceMonitor")
            .monitorType("DIMENSIONAL")
            .monitorDimension("SERVICE")
            .build());

var testAnomalySubscription = new AnomalySubscription("testAnomalySubscription", AnomalySubscriptionArgs.builder()
            .name("DAILYSUBSCRIPTION")
            .frequency("DAILY")
            .monitorArnLists(test.arn())
            .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                .type("EMAIL")
                .address("abc@example.com")
                .build())
            .thresholdExpression(AnomalySubscriptionThresholdExpressionArgs.builder()
                .dimension(AnomalySubscriptionThresholdExpressionDimensionArgs.builder()
                    .key("ANOMALY_TOTAL_IMPACT_ABSOLUTE")
                    .matchOptions("GREATER_THAN_OR_EQUAL")
                    .values("100")
                    .build())
                .build())
            .build());

}
}
```

Copy

```yaml
resources:
  test:
    type: aws:costexplorer:AnomalyMonitor
    properties:
      name: AWSServiceMonitor
      monitorType: DIMENSIONAL
      monitorDimension: SERVICE
  testAnomalySubscription:
    type: aws:costexplorer:AnomalySubscription
    name: test
    properties:
      name: DAILYSUBSCRIPTION
      frequency: DAILY
      monitorArnLists:
        - ${test.arn}
      subscribers:
        - type: EMAIL
          address: abc@example.com
      thresholdExpression:
        dimension:
          key: ANOMALY_TOTAL_IMPACT_ABSOLUTE
          matchOptions:
            - GREATER_THAN_OR_EQUAL
          values:
            - '100'
```

Copy

```hcl
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_costexplorer_anomalymonitor" "test" {
  name              = "AWSServiceMonitor"
  monitor_type      = "DIMENSIONAL"
  monitor_dimension = "SERVICE"
}
resource "aws_costexplorer_anomalysubscription" "test" {
  name              = "DAILYSUBSCRIPTION"
  frequency         = "DAILY"
  monitor_arn_lists = [aws_costexplorer_anomalymonitor.test.arn]
  subscribers {
    type    = "EMAIL"
    address = "abc@example.com"
  }
  threshold_expression = {
    dimension = {
      key           = "ANOMALY_TOTAL_IMPACT_ABSOLUTE"
      match_options = ["GREATER_THAN_OR_EQUAL"]
      values        = ["100"]
    }
  }
}
```

Copy

### Threshold Expression Example [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#threshold-expression-example/index.html)

### Using a Percentage Threshold [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#using-a-percentage-threshold/index.html)

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```typescript
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.costexplorer.AnomalySubscription("test", {
    name: "AWSServiceMonitor",
    frequency: "DAILY",
    monitorArnLists: [testAwsCeAnomalyMonitor.arn],
    subscribers: [{\
        type: "EMAIL",\
        address: "abc@example.com",\
    }],
    thresholdExpression: {
        dimension: {
            key: "ANOMALY_TOTAL_IMPACT_PERCENTAGE",
            matchOptions: ["GREATER_THAN_OR_EQUAL"],
            values: ["100"],
        },
    },
});
```

Copy

```python
import pulumi
import pulumi_aws as aws

test = aws.costexplorer.AnomalySubscription("test",
    name="AWSServiceMonitor",
    frequency="DAILY",
    monitor_arn_lists=[test_aws_ce_anomaly_monitor["arn"]],
    subscribers=[{\
        "type": "EMAIL",\
        "address": "abc@example.com",\
    }],
    threshold_expression={
        "dimension": {
            "key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE",
            "match_options": ["GREATER_THAN_OR_EQUAL"],
            "values": ["100"],
        },
    })
```

Copy

```go
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/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{
			Name:      pulumi.String("AWSServiceMonitor"),
			Frequency: pulumi.String("DAILY"),
			MonitorArnLists: pulumi.StringArray{
				testAwsCeAnomalyMonitor.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_PERCENTAGE"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("GREATER_THAN_OR_EQUAL"),
					},
					Values: pulumi.StringArray{
						pulumi.String("100"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
```

Copy

```csharp
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()
    {
        Name = "AWSServiceMonitor",
        Frequency = "DAILY",
        MonitorArnLists = new[]
        {
            testAwsCeAnomalyMonitor.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_PERCENTAGE",
                MatchOptions = new[]
                {
                    "GREATER_THAN_OR_EQUAL",
                },
                Values = new[]
                {
                    "100",
                },
            },
        },
    });

});
```

Copy

```java
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.ArrayList;
import java.util.Arrays;
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()
            .name("AWSServiceMonitor")
            .frequency("DAILY")
            .monitorArnLists(testAwsCeAnomalyMonitor.arn())
            .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                .type("EMAIL")
                .address("abc@example.com")
                .build())
            .thresholdExpression(AnomalySubscriptionThresholdExpressionArgs.builder()
                .dimension(AnomalySubscriptionThresholdExpressionDimensionArgs.builder()
                    .key("ANOMALY_TOTAL_IMPACT_PERCENTAGE")
                    .matchOptions("GREATER_THAN_OR_EQUAL")
                    .values("100")
                    .build())
                .build())
            .build());

}
}
```

Copy

```yaml
resources:
  test:
    type: aws:costexplorer:AnomalySubscription
    properties:
      name: AWSServiceMonitor
      frequency: DAILY
      monitorArnLists:
        - ${testAwsCeAnomalyMonitor.arn}
      subscribers:
        - type: EMAIL
          address: abc@example.com
      thresholdExpression:
        dimension:
          key: ANOMALY_TOTAL_IMPACT_PERCENTAGE
          matchOptions:
            - GREATER_THAN_OR_EQUAL
          values:
            - '100'
```

Copy

```hcl
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_costexplorer_anomalysubscription" "test" {
  name              = "AWSServiceMonitor"
  frequency         = "DAILY"
  monitor_arn_lists = [testAwsCeAnomalyMonitor.arn]
  subscribers {
    type    = "EMAIL"
    address = "abc@example.com"
  }
  threshold_expression = {
    dimension = {
      key           = "ANOMALY_TOTAL_IMPACT_PERCENTAGE"
      match_options = ["GREATER_THAN_OR_EQUAL"]
      values        = ["100"]
    }
  }
}
```

Copy

### Using an `and` Expression [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#using-an-and-expression/index.html)

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```typescript
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.costexplorer.AnomalySubscription("test", {
    name: "AWSServiceMonitor",
    frequency: "DAILY",
    monitorArnLists: [testAwsCeAnomalyMonitor.arn],
    subscribers: [{\
        type: "EMAIL",\
        address: "abc@example.com",\
    }],
    thresholdExpression: {
        ands: [\
            {\
                dimension: {\
                    key: "ANOMALY_TOTAL_IMPACT_ABSOLUTE",\
                    matchOptions: ["GREATER_THAN_OR_EQUAL"],\
                    values: ["100"],\
                },\
            },\
            {\
                dimension: {\
                    key: "ANOMALY_TOTAL_IMPACT_PERCENTAGE",\
                    matchOptions: ["GREATER_THAN_OR_EQUAL"],\
                    values: ["50"],\
                },\
            },\
        ],
    },
});
```

Copy

```python
import pulumi
import pulumi_aws as aws

test = aws.costexplorer.AnomalySubscription("test",
    name="AWSServiceMonitor",
    frequency="DAILY",
    monitor_arn_lists=[test_aws_ce_anomaly_monitor["arn"]],
    subscribers=[{\
        "type": "EMAIL",\
        "address": "abc@example.com",\
    }],
    threshold_expression={
        "ands": [\
            {\
                "dimension": {\
                    "key": "ANOMALY_TOTAL_IMPACT_ABSOLUTE",\
                    "match_options": ["GREATER_THAN_OR_EQUAL"],\
                    "values": ["100"],\
                },\
            },\
            {\
                "dimension": {\
                    "key": "ANOMALY_TOTAL_IMPACT_PERCENTAGE",\
                    "match_options": ["GREATER_THAN_OR_EQUAL"],\
                    "values": ["50"],\
                },\
            },\
        ],
    })
```

Copy

```go
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/costexplorer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

Copy

```csharp
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()
    {
        Name = "AWSServiceMonitor",
        Frequency = "DAILY",
        MonitorArnLists = new[]
        {
            testAwsCeAnomalyMonitor.Arn,
        },
        Subscribers = new[]
        {
            new Aws.CostExplorer.Inputs.AnomalySubscriptionSubscriberArgs
            {
                Type = "EMAIL",
                Address = "abc@example.com",
            },
        },
        ThresholdExpression = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionArgs
        {
            Ands = new[]
            {
                new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndArgs
                {
                    Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndDimensionArgs
                    {
                        Key = "ANOMALY_TOTAL_IMPACT_ABSOLUTE",
                        MatchOptions = new[]
                        {
                            "GREATER_THAN_OR_EQUAL",
                        },
                        Values = new[]
                        {
                            "100",
                        },
                    },
                },
                new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndArgs
                {
                    Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndDimensionArgs
                    {
                        Key = "ANOMALY_TOTAL_IMPACT_PERCENTAGE",
                        MatchOptions = new[]
                        {
                            "GREATER_THAN_OR_EQUAL",
                        },
                        Values = new[]
                        {
                            "50",
                        },
                    },
                },
            },
        },
    });

});
```

Copy

```java
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 java.util.ArrayList;
import java.util.Arrays;
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()
            .name("AWSServiceMonitor")
            .frequency("DAILY")
            .monitorArnLists(testAwsCeAnomalyMonitor.arn())
            .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                .type("EMAIL")
                .address("abc@example.com")
                .build())
            .thresholdExpression(AnomalySubscriptionThresholdExpressionArgs.builder()
                .ands(
                    AnomalySubscriptionThresholdExpressionAndArgs.builder()
                        .dimension(AnomalySubscriptionThresholdExpressionAndDimensionArgs.builder()
                            .key("ANOMALY_TOTAL_IMPACT_ABSOLUTE")
                            .matchOptions("GREATER_THAN_OR_EQUAL")
                            .values("100")
                            .build())
                        .build(),
                    AnomalySubscriptionThresholdExpressionAndArgs.builder()
                        .dimension(AnomalySubscriptionThresholdExpressionAndDimensionArgs.builder()
                            .key("ANOMALY_TOTAL_IMPACT_PERCENTAGE")
                            .matchOptions("GREATER_THAN_OR_EQUAL")
                            .values("50")
                            .build())
                        .build())
                .build())
            .build());

}
}
```

Copy

```yaml
resources:
  test:
    type: aws:costexplorer:AnomalySubscription
    properties:
      name: AWSServiceMonitor
      frequency: DAILY
      monitorArnLists:
        - ${testAwsCeAnomalyMonitor.arn}
      subscribers:
        - type: EMAIL
          address: abc@example.com
      thresholdExpression:
        ands:
          - dimension:
              key: ANOMALY_TOTAL_IMPACT_ABSOLUTE
              matchOptions:
                - GREATER_THAN_OR_EQUAL
              values:
                - '100'
          - dimension:
              key: ANOMALY_TOTAL_IMPACT_PERCENTAGE
              matchOptions:
                - GREATER_THAN_OR_EQUAL
              values:
                - '50'
```

Copy

```hcl
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

resource "aws_costexplorer_anomalysubscription" "test" {
  name              = "AWSServiceMonitor"
  frequency         = "DAILY"
  monitor_arn_lists = [testAwsCeAnomalyMonitor.arn]
  subscribers {
    type    = "EMAIL"
    address = "abc@example.com"
  }
  threshold_expression = {
    ands = [{\
      "dimension" = {\
        "key"          = "ANOMALY_TOTAL_IMPACT_ABSOLUTE"\
        "matchOptions" = ["GREATER_THAN_OR_EQUAL"]\
        "values"       = ["100"]\
      }\
      }, {\
      "dimension" = {\
        "key"          = "ANOMALY_TOTAL_IMPACT_PERCENTAGE"\
        "matchOptions" = ["GREATER_THAN_OR_EQUAL"]\
        "values"       = ["50"]\
      }\
    }]
  }
}
```

Copy

### SNS Example [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#sns-example/index.html)

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```typescript
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const costAnomalyUpdates = new aws.sns.Topic("cost_anomaly_updates", {name: "CostAnomalyUpdates"});
const snsTopicPolicy = aws.iam.getPolicyDocumentOutput({
    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: [accountId],\
            }],\
            effect: "Allow",\
            principals: [{\
                type: "AWS",\
                identifiers: ["*"],\
            }],\
            resources: [costAnomalyUpdates.arn],\
        },\
    ],
});
const _default = new aws.sns.TopicPolicy("default", {
    arn: costAnomalyUpdates.arn,
    policy: snsTopicPolicy.apply(snsTopicPolicy => snsTopicPolicy.json),
});
const anomalyMonitor = new aws.costexplorer.AnomalyMonitor("anomaly_monitor", {
    name: "AWSServiceMonitor",
    monitorType: "DIMENSIONAL",
    monitorDimension: "SERVICE",
});
const realtimeSubscription = new aws.costexplorer.AnomalySubscription("realtime_subscription", {
    name: "RealtimeAnomalySubscription",
    frequency: "IMMEDIATE",
    monitorArnLists: [anomalyMonitor.arn],
    subscribers: [{\
        type: "SNS",\
        address: costAnomalyUpdates.arn,\
    }],
}, {
    dependsOn: [_default],
});
```

Copy

```python
import pulumi
import pulumi_aws as aws

cost_anomaly_updates = aws.sns.Topic("cost_anomaly_updates", name="CostAnomalyUpdates")
sns_topic_policy = aws.iam.get_policy_document_output(policy_id="__default_policy_ID",
    statements=[\
        {\
            "sid": "AWSAnomalyDetectionSNSPublishingPermissions",\
            "actions": ["SNS:Publish"],\
            "effect": "Allow",\
            "principals": [{\
                "type": "Service",\
                "identifiers": ["costalerts.amazonaws.com"],\
            }],\
            "resources": [cost_anomaly_updates.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": [account_id],\
            }],\
            "effect": "Allow",\
            "principals": [{\
                "type": "AWS",\
                "identifiers": ["*"],\
            }],\
            "resources": [cost_anomaly_updates.arn],\
        },\
    ])
default = aws.sns.TopicPolicy("default",
    arn=cost_anomaly_updates.arn,
    policy=sns_topic_policy.json)
anomaly_monitor = aws.costexplorer.AnomalyMonitor("anomaly_monitor",
    name="AWSServiceMonitor",
    monitor_type="DIMENSIONAL",
    monitor_dimension="SERVICE")
realtime_subscription = aws.costexplorer.AnomalySubscription("realtime_subscription",
    name="RealtimeAnomalySubscription",
    frequency="IMMEDIATE",
    monitor_arn_lists=[anomaly_monitor.arn],
    subscribers=[{\
        "type": "SNS",\
        "address": cost_anomaly_updates.arn,\
    }],
    opts = pulumi.ResourceOptions(depends_on=[default]))
```

Copy

```go
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/costexplorer"
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/sns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		costAnomalyUpdates, err := sns.NewTopic(ctx, "cost_anomaly_updates", &sns.TopicArgs{
			Name: pulumi.String("CostAnomalyUpdates"),
		})
		if err != nil {
			return err
		}
		snsTopicPolicy := iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{
			PolicyId: pulumi.String("__default_policy_ID"),
			Statements: iam.GetPolicyDocumentStatementArray{
				&iam.GetPolicyDocumentStatementArgs{
					Sid: pulumi.String("AWSAnomalyDetectionSNSPublishingPermissions"),
					Actions: pulumi.StringArray{
						pulumi.String("SNS:Publish"),
					},
					Effect: pulumi.String("Allow"),
					Principals: iam.GetPolicyDocumentStatementPrincipalArray{
						&iam.GetPolicyDocumentStatementPrincipalArgs{
							Type: pulumi.String("Service"),
							Identifiers: pulumi.StringArray{
								pulumi.String("costalerts.amazonaws.com"),
							},
						},
					},
					Resources: pulumi.StringArray{
						costAnomalyUpdates.Arn,
					},
				},
				&iam.GetPolicyDocumentStatementArgs{
					Sid: pulumi.String("__default_statement_ID"),
					Actions: pulumi.StringArray{
						pulumi.String("SNS:Subscribe"),
						pulumi.String("SNS:SetTopicAttributes"),
						pulumi.String("SNS:RemovePermission"),
						pulumi.String("SNS:Receive"),
						pulumi.String("SNS:Publish"),
						pulumi.String("SNS:ListSubscriptionsByTopic"),
						pulumi.String("SNS:GetTopicAttributes"),
						pulumi.String("SNS:DeleteTopic"),
						pulumi.String("SNS:AddPermission"),
					},
					Conditions: iam.GetPolicyDocumentStatementConditionArray{
						&iam.GetPolicyDocumentStatementConditionArgs{
							Test:     pulumi.String("StringEquals"),
							Variable: pulumi.String("AWS:SourceOwner"),
							Values: pulumi.StringArray{
								accountId,
							},
						},
					},
					Effect: pulumi.String("Allow"),
					Principals: iam.GetPolicyDocumentStatementPrincipalArray{
						&iam.GetPolicyDocumentStatementPrincipalArgs{
							Type: pulumi.String("AWS"),
							Identifiers: pulumi.StringArray{
								pulumi.String("*"),
							},
						},
					},
					Resources: pulumi.StringArray{
						costAnomalyUpdates.Arn,
					},
				},
			},
		}, nil)
		_default, err := sns.NewTopicPolicy(ctx, "default", &sns.TopicPolicyArgs{
			Arn: costAnomalyUpdates.Arn,
			Policy: pulumi.String(snsTopicPolicy.ApplyT(func(snsTopicPolicy iam.GetPolicyDocumentResult) (*string, error) {
				return &snsTopicPolicy.Json, nil
			}).(pulumi.StringPtrOutput)),
		})
		if err != nil {
			return err
		}
		anomalyMonitor, err := costexplorer.NewAnomalyMonitor(ctx, "anomaly_monitor", &costexplorer.AnomalyMonitorArgs{
			Name:             pulumi.String("AWSServiceMonitor"),
			MonitorType:      pulumi.String("DIMENSIONAL"),
			MonitorDimension: pulumi.String("SERVICE"),
		})
		if err != nil {
			return err
		}
		_, err = costexplorer.NewAnomalySubscription(ctx, "realtime_subscription", &costexplorer.AnomalySubscriptionArgs{
			Name:      pulumi.String("RealtimeAnomalySubscription"),
			Frequency: pulumi.String("IMMEDIATE"),
			MonitorArnLists: pulumi.StringArray{
				anomalyMonitor.Arn,
			},
			Subscribers: costexplorer.AnomalySubscriptionSubscriberArray{
				&costexplorer.AnomalySubscriptionSubscriberArgs{
					Type:    pulumi.String("SNS"),
					Address: costAnomalyUpdates.Arn,
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			_default,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
```

Copy

```csharp
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() =>
{
    var costAnomalyUpdates = new Aws.Sns.Topic("cost_anomaly_updates", new()
    {
        Name = "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[]
                        {
                            accountId,
                        },
                    },
                },
                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("anomaly_monitor", new()
    {
        Name = "AWSServiceMonitor",
        MonitorType = "DIMENSIONAL",
        MonitorDimension = "SERVICE",
    });

var realtimeSubscription = new Aws.CostExplorer.AnomalySubscription("realtime_subscription", new()
    {
        Name = "RealtimeAnomalySubscription",
        Frequency = "IMMEDIATE",
        MonitorArnLists = new[]
        {
            anomalyMonitor.Arn,
        },
        Subscribers = new[]
        {
            new Aws.CostExplorer.Inputs.AnomalySubscriptionSubscriberArgs
            {
                Type = "SNS",
                Address = costAnomalyUpdates.Arn,
            },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            @default,
        },
    });

});
```

Copy

```java
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.sns.TopicArgs;
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.ArrayList;
import java.util.Arrays;
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", TopicArgs.builder()
            .name("CostAnomalyUpdates")
            .build());

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(accountId)
                        .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(_snsTopicPolicy -> _snsTopicPolicy.json()))
            .build());

var anomalyMonitor = new AnomalyMonitor("anomalyMonitor", AnomalyMonitorArgs.builder()
            .name("AWSServiceMonitor")
            .monitorType("DIMENSIONAL")
            .monitorDimension("SERVICE")
            .build());

var realtimeSubscription = new AnomalySubscription("realtimeSubscription", AnomalySubscriptionArgs.builder()
            .name("RealtimeAnomalySubscription")
            .frequency("IMMEDIATE")
            .monitorArnLists(anomalyMonitor.arn())
            .subscribers(AnomalySubscriptionSubscriberArgs.builder()
                .type("SNS")
                .address(costAnomalyUpdates.arn())
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(default_)
                .build());

}
}
```

Copy

```yaml
resources:
  costAnomalyUpdates:
    type: aws:sns:Topic
    name: cost_anomaly_updates
    properties:
      name: CostAnomalyUpdates
  default:
    type: aws:sns:TopicPolicy
    properties:
      arn: ${costAnomalyUpdates.arn}
      policy: ${snsTopicPolicy.json}
  anomalyMonitor:
    type: aws:costexplorer:AnomalyMonitor
    name: anomaly_monitor
    properties:
      name: AWSServiceMonitor
      monitorType: DIMENSIONAL
      monitorDimension: SERVICE
  realtimeSubscription:
    type: aws:costexplorer:AnomalySubscription
    name: realtime_subscription
    properties:
      name: RealtimeAnomalySubscription
      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:
                  - ${accountId}
            effect: Allow
            principals:
              - type: AWS
                identifiers:
                  - '*'
            resources:
              - ${costAnomalyUpdates.arn}
```

Copy

```hcl
pulumi {
  required_providers {
    aws = {
      source = "pulumi/aws"
    }
  }
}

data "aws_iam_getpolicydocument" "snsTopicPolicy" {
  policy_id = "__default_policy_ID"
  statements {
    sid     = "AWSAnomalyDetectionSNSPublishingPermissions"
    actions = ["SNS:Publish"]
    effect  = "Allow"
    principals {
      type        = "Service"
      identifiers = ["costalerts.amazonaws.com"]
    }
    resources = [aws_sns_topic.cost_anomaly_updates.arn]
  }
  statements {
    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   = [accountId]
    }
    effect = "Allow"
    principals {
      type        = "AWS"
      identifiers = ["*"]
    }
    resources = [aws_sns_topic.cost_anomaly_updates.arn]
  }
}

resource "aws_sns_topic" "cost_anomaly_updates" {
  name = "CostAnomalyUpdates"
}
resource "aws_sns_topicpolicy" "default" {
  arn    = aws_sns_topic.cost_anomaly_updates.arn
  policy = data.aws_iam_getpolicydocument.snsTopicPolicy.json
}
resource "aws_costexplorer_anomalymonitor" "anomaly_monitor" {
  name              = "AWSServiceMonitor"
  monitor_type      = "DIMENSIONAL"
  monitor_dimension = "SERVICE"
}
resource "aws_costexplorer_anomalysubscription" "realtime_subscription" {
  depends_on        = [aws_sns_topicpolicy.default]
  name              = "RealtimeAnomalySubscription"
  frequency         = "IMMEDIATE"
  monitor_arn_lists = [aws_costexplorer_anomalymonitor.anomaly_monitor.arn]
  subscribers {
    type    = "SNS"
    address = aws_sns_topic.cost_anomaly_updates.arn
  }
}
```

Copy

## Create AnomalySubscription Resource [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#create/index.html)

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see [Resources](/content/docs/concepts/resources/index.html).

### Constructor syntax [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#constructor-syntax/index.html)

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```typescript
new AnomalySubscription(name: string, args: AnomalySubscriptionArgs, opts?: CustomResourceOptions);
```

```python
@overload
def AnomalySubscription(resource_name: str,
                        args: AnomalySubscriptionArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def AnomalySubscription(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        frequency: Optional[str] = None,
                        monitor_arn_lists: Optional[Sequence[str]] = None,
                        subscribers: Optional[Sequence[AnomalySubscriptionSubscriberArgs]] = None,
                        account_id: Optional[str] = None,
                        name: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        threshold_expression: Optional[AnomalySubscriptionThresholdExpressionArgs] = None)
```

```go
func NewAnomalySubscription(ctx *Context, name string, args AnomalySubscriptionArgs, opts ...ResourceOption) (*AnomalySubscription, error)
```

```csharp
public AnomalySubscription(string name, AnomalySubscriptionArgs args, CustomResourceOptions? opts = null)
```

```java
public AnomalySubscription(String name, AnomalySubscriptionArgs args)
public AnomalySubscription(String name, AnomalySubscriptionArgs args, CustomResourceOptions options)
```

```yaml
type: aws:costexplorer:AnomalySubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
```

```hcl
resource "aws_costexplorer_anomalysubscription" "name" {
    # resource properties
}
```

#### Parameters [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#parameters/index.html)

nameThis property is required.stringThe unique name of the resource.argsThis property is required.[AnomalySubscriptionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html)The arguments to resource properties.opts[CustomResourceOptions](/content/docs/reference/pkg/nodejs/pulumi/pulumi/#CustomResourceOptions/index.html)Bag of options to control resource's behavior.

resource\_nameThis property is required.strThe unique name of the resource.argsThis property is required.[AnomalySubscriptionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html)The arguments to resource properties.opts[ResourceOptions](/content/docs/reference/pkg/python/pulumi/#pulumi.ResourceOptions)Bag of options to control resource's behavior.

ctx[Context](https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi?tab=doc#Context)Context object for the current deployment.nameThis property is required.stringThe unique name of the resource.argsThis property is required.[AnomalySubscriptionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html)The arguments to resource properties.opts[ResourceOption](https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi?tab=doc#ResourceOption)Bag of options to control resource's behavior.

nameThis property is required.stringThe unique name of the resource.argsThis property is required.[AnomalySubscriptionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html)The arguments to resource properties.opts[CustomResourceOptions](/content/docs/reference/pkg/dotnet/Pulumi/Pulumi.CustomResourceOptions.html)Bag of options to control resource's behavior.

nameThis property is required.StringThe unique name of the resource.argsThis property is required.[AnomalySubscriptionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html)The arguments to resource properties.optionsCustomResourceOptionsBag of options to control resource's behavior.

### Constructor example [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#constructor-example/index.html)

The following reference example uses placeholder values for all [input properties](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html).

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```csharp
var anomalySubscriptionResource = new Aws.CostExplorer.AnomalySubscription("anomalySubscriptionResource", new()
{
    Frequency = "string",
    MonitorArnLists = new[]
    {
        "string",
    },
    Subscribers = new[]
    {
        new Aws.CostExplorer.Inputs.AnomalySubscriptionSubscriberArgs
        {
            Address = "string",
            Type = "string",
        },
    },
    AccountId = "string",
    Name = "string",
    Tags =
    {
        { "string", "string" },
    },
    ThresholdExpression = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionArgs
    {
        Ands = new[]
        {
            new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndArgs
            {
                CostCategory = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndCostCategoryArgs
                {
                    Key = "string",
                    MatchOptions = new[]
                    {
                        "string",
                    },
                    Values = new[]
                    {
                        "string",
                    },
                },
                Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndDimensionArgs
                {
                    Key = "string",
                    MatchOptions = new[]
                    {
                        "string",
                    },
                    Values = new[]
                    {
                        "string",
                    },
                },
                Tags = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionAndTagsArgs
                {
                    Key = "string",
                    MatchOptions = new[]
                    {
                        "string",
                    },
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        CostCategory = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionCostCategoryArgs
        {
            Key = "string",
            MatchOptions = new[]
            {
                "string",
            },
            Values = new[]
            {
                "string",
            },
        },
        Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionDimensionArgs
        {
            Key = "string",
            MatchOptions = new[]
            {
                "string",
            },
            Values = new[]
            {
                "string",
            },
        },
        Not = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionNotArgs
        {
            CostCategory = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionNotCostCategoryArgs
            {
                Key = "string",
                MatchOptions = new[]
                {
                    "string",
                },
                Values = new[]
                {
                    "string",
                },
            },
            Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionNotDimensionArgs
            {
                Key = "string",
                MatchOptions = new[]
                {
                    "string",
                },
                Values = new[]
                {
                    "string",
                },
            },
            Tags = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionNotTagsArgs
            {
                Key = "string",
                MatchOptions = new[]
                {
                    "string",
                },
                Values = new[]
                {
                    "string",
                },
            },
        },
        Ors = new[]
        {
            new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionOrArgs
            {
                CostCategory = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionOrCostCategoryArgs
                {
                    Key = "string",
                    MatchOptions = new[]
                    {
                        "string",
                    },
                    Values = new[]
                    {
                        "string",
                    },
                },
                Dimension = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionOrDimensionArgs
                {
                    Key = "string",
                    MatchOptions = new[]
                    {
                        "string",
                    },
                    Values = new[]
                    {
                        "string",
                    },
                },
                Tags = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionOrTagsArgs
                {
                    Key = "string",
                    MatchOptions = new[]
                    {
                        "string",
                    },
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Tags = new Aws.CostExplorer.Inputs.AnomalySubscriptionThresholdExpressionTagsArgs
        {
            Key = "string",
            MatchOptions = new[]
            {
                "string",
            },
            Values = new[]
            {
                "string",
            },
        },
    },
});
```

Copy

```go
example, err := costexplorer.NewAnomalySubscription(ctx, "anomalySubscriptionResource", &costexplorer.AnomalySubscriptionArgs{
	Frequency: pulumi.String("string"),
	MonitorArnLists: pulumi.StringArray{
		pulumi.String("string"),
	},
	Subscribers: costexplorer.AnomalySubscriptionSubscriberArray{
		&costexplorer.AnomalySubscriptionSubscriberArgs{
			Address: pulumi.String("string"),
			Type:    pulumi.String("string"),
		},
	},
	AccountId: pulumi.String("string"),
	Name:      pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ThresholdExpression: &costexplorer.AnomalySubscriptionThresholdExpressionArgs{
		Ands: costexplorer.AnomalySubscriptionThresholdExpressionAndArray{
			&costexplorer.AnomalySubscriptionThresholdExpressionAndArgs{
				CostCategory: &costexplorer.AnomalySubscriptionThresholdExpressionAndCostCategoryArgs{
					Key: pulumi.String("string"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("string"),
					},
					Values: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
				Dimension: &costexplorer.AnomalySubscriptionThresholdExpressionAndDimensionArgs{
					Key: pulumi.String("string"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("string"),
					},
					Values: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
				Tags: &costexplorer.AnomalySubscriptionThresholdExpressionAndTagsArgs{
					Key: pulumi.String("string"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("string"),
					},
					Values: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
		},
		CostCategory: &costexplorer.AnomalySubscriptionThresholdExpressionCostCategoryArgs{
			Key: pulumi.String("string"),
			MatchOptions: pulumi.StringArray{
				pulumi.String("string"),
			},
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Dimension: &costexplorer.AnomalySubscriptionThresholdExpressionDimensionArgs{
			Key: pulumi.String("string"),
			MatchOptions: pulumi.StringArray{
				pulumi.String("string"),
			},
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Not: &costexplorer.AnomalySubscriptionThresholdExpressionNotArgs{
			CostCategory: &costexplorer.AnomalySubscriptionThresholdExpressionNotCostCategoryArgs{
				Key: pulumi.String("string"),
				MatchOptions: pulumi.StringArray{
					pulumi.String("string"),
				},
				Values: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			Dimension: &costexplorer.AnomalySubscriptionThresholdExpressionNotDimensionArgs{
				Key: pulumi.String("string"),
				MatchOptions: pulumi.StringArray{
					pulumi.String("string"),
				},
				Values: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
			Tags: &costexplorer.AnomalySubscriptionThresholdExpressionNotTagsArgs{
				Key: pulumi.String("string"),
				MatchOptions: pulumi.StringArray{
					pulumi.String("string"),
				},
				Values: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		Ors: costexplorer.AnomalySubscriptionThresholdExpressionOrArray{
			&costexplorer.AnomalySubscriptionThresholdExpressionOrArgs{
				CostCategory: &costexplorer.AnomalySubscriptionThresholdExpressionOrCostCategoryArgs{
					Key: pulumi.String("string"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("string"),
					},
					Values: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
				Dimension: &costexplorer.AnomalySubscriptionThresholdExpressionOrDimensionArgs{
					Key: pulumi.String("string"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("string"),
					},
					Values: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
				Tags: &costexplorer.AnomalySubscriptionThresholdExpressionOrTagsArgs{
					Key: pulumi.String("string"),
					MatchOptions: pulumi.StringArray{
						pulumi.String("string"),
					},
					Values: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
			},
		},
		Tags: &costexplorer.AnomalySubscriptionThresholdExpressionTagsArgs{
			Key: pulumi.String("string"),
			MatchOptions: pulumi.StringArray{
				pulumi.String("string"),
			},
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
})
```

Copy

```hcl
resource "aws_costexplorer_anomalysubscription" "anomalySubscriptionResource" {
  frequency         = "string"
  monitor_arn_lists = ["string"]
  subscribers {
    address = "string"
    type    = "string"
  }
  account_id = "string"
  name       = "string"
  tags = {
    "string" = "string"
  }
  threshold_expression = {
    ands = [{\
      "costCategory" = {\
        "key"          = "string"\
        "matchOptions" = ["string"]\
        "values"       = ["string"]\
      }\
      "dimension" = {\
        "key"          = "string"\
        "matchOptions" = ["string"]\
        "values"       = ["string"]\
      }\
      "tags" = {\
        "key"          = "string"\
        "matchOptions" = ["string"]\
        "values"       = ["string"]\
      }\
    }]
    cost_category = {
      key           = "string"
      match_options = ["string"]
      values        = ["string"]
    }
    dimension = {
      key           = "string"
      match_options = ["string"]
      values        = ["string"]
    }
    not = {
      cost_category = {
        key           = "string"
        match_options = ["string"]
        values        = ["string"]
      }
      dimension = {
        key           = "string"
        match_options = ["string"]
        values        = ["string"]
      }
      tags = {
        key           = "string"
        match_options = ["string"]
        values        = ["string"]
      }
    }
    ors = [{\
      "costCategory" = {\
        "key"          = "string"\
        "matchOptions" = ["string"]\
        "values"       = ["string"]\
      }\
      "dimension" = {\
        "key"          = "string"\
        "matchOptions" = ["string"]\
        "values"       = ["string"]\
      }\
      "tags" = {\
        "key"          = "string"\
        "matchOptions" = ["string"]\
        "values"       = ["string"]\
      }\
    }]
    tags = {
      key           = "string"
      match_options = ["string"]
      values        = ["string"]
    }
  }
}
```

Copy

```java
var anomalySubscriptionResource = new AnomalySubscription("anomalySubscriptionResource", AnomalySubscriptionArgs.builder()
    .frequency("string")
    .monitorArnLists("string")
    .subscribers(AnomalySubscriptionSubscriberArgs.builder()
        .address("string")
        .type("string")
        .build())
    .accountId("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .thresholdExpression(AnomalySubscriptionThresholdExpressionArgs.builder()
        .ands(AnomalySubscriptionThresholdExpressionAndArgs.builder()
            .costCategory(AnomalySubscriptionThresholdExpressionAndCostCategoryArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .dimension(AnomalySubscriptionThresholdExpressionAndDimensionArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .tags(AnomalySubscriptionThresholdExpressionAndTagsArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .build())
        .costCategory(AnomalySubscriptionThresholdExpressionCostCategoryArgs.builder()
            .key("string")
            .matchOptions("string")
            .values("string")
            .build())
        .dimension(AnomalySubscriptionThresholdExpressionDimensionArgs.builder()
            .key("string")
            .matchOptions("string")
            .values("string")
            .build())
        .not(AnomalySubscriptionThresholdExpressionNotArgs.builder()
            .costCategory(AnomalySubscriptionThresholdExpressionNotCostCategoryArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .dimension(AnomalySubscriptionThresholdExpressionNotDimensionArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .tags(AnomalySubscriptionThresholdExpressionNotTagsArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .build())
        .ors(AnomalySubscriptionThresholdExpressionOrArgs.builder()
            .costCategory(AnomalySubscriptionThresholdExpressionOrCostCategoryArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .dimension(AnomalySubscriptionThresholdExpressionOrDimensionArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .tags(AnomalySubscriptionThresholdExpressionOrTagsArgs.builder()
                .key("string")
                .matchOptions("string")
                .values("string")
                .build())
            .build())
        .tags(AnomalySubscriptionThresholdExpressionTagsArgs.builder()
            .key("string")
            .matchOptions("string")
            .values("string")
            .build())
        .build())
    .build());
```

Copy

```python
anomaly_subscription_resource = aws.costexplorer.AnomalySubscription("anomalySubscriptionResource",
    frequency="string",
    monitor_arn_lists=["string"],
    subscribers=[{\
        "address": "string",\
        "type": "string",\
    }],
    account_id="string",
    name="string",
    tags={
        "string": "string",
    },
    threshold_expression={
        "ands": [{\
            "cost_category": {\
                "key": "string",\
                "match_options": ["string"],\
                "values": ["string"],\
            },\
            "dimension": {\
                "key": "string",\
                "match_options": ["string"],\
                "values": ["string"],\
            },\
            "tags": {\
                "key": "string",\
                "match_options": ["string"],\
                "values": ["string"],\
            },\
        }],
        "cost_category": {
            "key": "string",
            "match_options": ["string"],
            "values": ["string"],
        },
        "dimension": {
            "key": "string",
            "match_options": ["string"],
            "values": ["string"],
        },
        "not_": {
            "cost_category": {
                "key": "string",
                "match_options": ["string"],
                "values": ["string"],
            },
            "dimension": {
                "key": "string",
                "match_options": ["string"],
                "values": ["string"],
            },
            "tags": {
                "key": "string",
                "match_options": ["string"],
                "values": ["string"],
            },
        },
        "ors": [{\
            "cost_category": {\
                "key": "string",\
                "match_options": ["string"],\
                "values": ["string"],\
            },\
            "dimension": {\
                "key": "string",\
                "match_options": ["string"],\
                "values": ["string"],\
            },\
            "tags": {\
                "key": "string",\
                "match_options": ["string"],\
                "values": ["string"],\
            },\
        }],
        "tags": {
            "key": "string",
            "match_options": ["string"],
            "values": ["string"],
        },
    })
```

Copy

```typescript
const anomalySubscriptionResource = new aws.costexplorer.AnomalySubscription("anomalySubscriptionResource", {
    frequency: "string",
    monitorArnLists: ["string"],
    subscribers: [{\
        address: "string",\
        type: "string",\
    }],
    accountId: "string",
    name: "string",
    tags: {
        string: "string",
    },
    thresholdExpression: {
        ands: [{\
            costCategory: {\
                key: "string",\
                matchOptions: ["string"],\
                values: ["string"],\
            },\
            dimension: {\
                key: "string",\
                matchOptions: ["string"],\
                values: ["string"],\
            },\
            tags: {\
                key: "string",\
                matchOptions: ["string"],\
                values: ["string"],\
            },\
        }],
        costCategory: {
            key: "string",
            matchOptions: ["string"],
            values: ["string"],
        },
        dimension: {
            key: "string",
            matchOptions: ["string"],
            values: ["string"],
        },
        not: {
            costCategory: {
                key: "string",
                matchOptions: ["string"],
                values: ["string"],
            },
            dimension: {
                key: "string",
                matchOptions: ["string"],
                values: ["string"],
            },
            tags: {
                key: "string",
                matchOptions: ["string"],
                values: ["string"],
            },
        },
        ors: [{\
            costCategory: {\
                key: "string",\
                matchOptions: ["string"],\
                values: ["string"],\
            },\
            dimension: {\
                key: "string",\
                matchOptions: ["string"],\
                values: ["string"],\
            },\
            tags: {\
                key: "string",\
                matchOptions: ["string"],\
                values: ["string"],\
            },\
        }],
        tags: {
            key: "string",
            matchOptions: ["string"],
            values: ["string"],
        },
    },
});
```

Copy

```yaml
type: aws:costexplorer:AnomalySubscription
properties:
    accountId: string
    frequency: string
    monitorArnLists:
        - string
    name: string
    subscribers:
        - address: string
          type: string
    tags:
        string: string
    thresholdExpression:
        ands:
            - costCategory:
                key: string
                matchOptions:
                    - string
                values:
                    - string
              dimension:
                key: string
                matchOptions:
                    - string
                values:
                    - string
              tags:
                key: string
                matchOptions:
                    - string
                values:
                    - string
        costCategory:
            key: string
            matchOptions:
                - string
            values:
                - string
        dimension:
            key: string
            matchOptions:
                - string
            values:
                - string
        not:
            costCategory:
                key: string
                matchOptions:
                    - string
                values:
                    - string
            dimension:
                key: string
                matchOptions:
                    - string
                values:
                    - string
            tags:
                key: string
                matchOptions:
                    - string
                values:
                    - string
        ors:
            - costCategory:
                key: string
                matchOptions:
                    - string
                values:
                    - string
              dimension:
                key: string
                matchOptions:
                    - string
                values:
                    - string
              tags:
                key: string
                matchOptions:
                    - string
                values:
                    - string
        tags:
            key: string
            matchOptions:
                - string
            values:
                - string
```

Copy

## AnomalySubscription Resource Properties [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#properties/index.html)

To learn more about resource properties and how to use them, see [Inputs and Outputs](/content/docs/intro/concepts/inputs-outputs/index.html) in the Architecture and Concepts docs.

### Inputs [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#inputs/index.html)

In Python, inputs that are objects can be passed either as [argument classes or as dictionary literals](/content/docs/languages-sdks/python/#inputs-and-outputs/index.html).

The AnomalySubscription resource accepts the following [input](/content/docs/intro/concepts/inputs-outputs/index.html) properties:

[Frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_csharp/index.html)This property is required.stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[MonitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitorarnlists_csharp/index.html)This property is required.List<string>A list of cost anomaly monitors.[Subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_csharp/index.html)This property is required.[List<AnomalySubscriptionSubscriber>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[AccountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#accountid_csharp/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[Name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_csharp/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_csharp/index.html)Dictionary<string, string>A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[ThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#thresholdexpression_csharp/index.html)[AnomalySubscriptionThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[Frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_go/index.html)This property is required.stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[MonitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitorarnlists_go/index.html)This property is required.\[\]stringA list of cost anomaly monitors.[Subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_go/index.html)This property is required.[\[\]AnomalySubscriptionSubscriberArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[AccountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#accountid_go/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[Name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_go/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_go/index.html)map\[string\]stringA map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[ThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#thresholdexpression_go/index.html)[AnomalySubscriptionThresholdExpressionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_hcl/index.html)This property is required.stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitor\_arn\_lists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitor_arn_lists_hcl/index.html)This property is required.list(string)A list of cost anomaly monitors.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_hcl/index.html)This property is required.[list(object)](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[account\_id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#account_id_hcl/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_hcl/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_hcl/index.html)map(string)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[threshold\_expression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#threshold_expression_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_java/index.html)This property is required.StringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitorarnlists_java/index.html)This property is required.List<String>A list of cost anomaly monitors.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_java/index.html)This property is required.[List<AnomalySubscriptionSubscriber>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[accountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#accountid_java/index.html)Changes to this property will trigger replacement.StringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_java/index.html)Changes to this property will trigger replacement.StringThe name for the subscription.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_java/index.html)Map<String,String>A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[thresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#thresholdexpression_java/index.html)[AnomalySubscriptionThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_nodejs/index.html)This property is required.stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitorarnlists_nodejs/index.html)This property is required.string\[\]A list of cost anomaly monitors.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_nodejs/index.html)This property is required.[AnomalySubscriptionSubscriber\[\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[accountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#accountid_nodejs/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_nodejs/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_nodejs/index.html){\[key: string\]: string}A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[thresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#thresholdexpression_nodejs/index.html)[AnomalySubscriptionThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_python/index.html)This property is required.strThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitor\_arn\_lists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitor_arn_lists_python/index.html)This property is required.Sequence\[str\]A list of cost anomaly monitors.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_python/index.html)This property is required.[Sequence\[AnomalySubscriptionSubscriberArgs\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[account\_id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#account_id_python/index.html)Changes to this property will trigger replacement.strThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_python/index.html)Changes to this property will trigger replacement.strThe name for the subscription.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_python/index.html)Mapping\[str, str\]A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[threshold\_expression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#threshold_expression_python/index.html)[AnomalySubscriptionThresholdExpressionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#frequency_yaml/index.html)This property is required.StringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#monitorarnlists_yaml/index.html)This property is required.List<String>A list of cost anomaly monitors.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#subscribers_yaml/index.html)This property is required.[List<Property Map>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[accountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#accountid_yaml/index.html)Changes to this property will trigger replacement.StringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#name_yaml/index.html)Changes to this property will trigger replacement.StringThe name for the subscription.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_yaml/index.html)Map<String>A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[thresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#thresholdexpression_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

### Outputs [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#outputs/index.html)

All [input](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#inputs/index.html) properties are implicitly available as output properties. Additionally, the AnomalySubscription resource produces the following output properties:

[Arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_csharp/index.html)stringARN of the anomaly subscription.[Id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_csharp/index.html)stringThe provider-assigned unique ID for this managed resource.[TagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tagsall_csharp/index.html)Dictionary<string, string>A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

[Arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_go/index.html)stringARN of the anomaly subscription.[Id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_go/index.html)stringThe provider-assigned unique ID for this managed resource.[TagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tagsall_go/index.html)map\[string\]stringA map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_hcl/index.html)stringARN of the anomaly subscription.[id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_hcl/index.html)stringThe provider-assigned unique ID for this managed resource.[tags\_all](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_all_hcl/index.html)map(string)A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_java/index.html)StringARN of the anomaly subscription.[id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_java/index.html)StringThe provider-assigned unique ID for this managed resource.[tagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tagsall_java/index.html)Map<String,String>A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_nodejs/index.html)stringARN of the anomaly subscription.[id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_nodejs/index.html)stringThe provider-assigned unique ID for this managed resource.[tagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tagsall_nodejs/index.html){\[key: string\]: string}A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_python/index.html)strARN of the anomaly subscription.[id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_python/index.html)strThe provider-assigned unique ID for this managed resource.[tags\_all](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_all_python/index.html)Mapping\[str, str\]A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#arn_yaml/index.html)StringARN of the anomaly subscription.[id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#id_yaml/index.html)StringThe provider-assigned unique ID for this managed resource.[tagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tagsall_yaml/index.html)Map<String>A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

## Look up Existing AnomalySubscription Resource [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#look-up/index.html)

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

- TypeScript
- Python
- Go
- C#
- Java
- YAML
- HCL PREVIEW

```typescript
public static get(name: string, id: Input<ID>, state?: AnomalySubscriptionState, opts?: CustomResourceOptions): AnomalySubscription
```

```python
@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_expression: Optional[AnomalySubscriptionThresholdExpressionArgs] = None) -> AnomalySubscription
```

```go
func GetAnomalySubscription(ctx *Context, name string, id IDInput, state *AnomalySubscriptionState, opts ...ResourceOption) (*AnomalySubscription, error)
```

```csharp
public static AnomalySubscription Get(string name, Input<string> id, AnomalySubscriptionState? state, CustomResourceOptions? opts = null)
```

```java
public static AnomalySubscription get(String name, Output<String> id, AnomalySubscriptionState state, CustomResourceOptions options)
```

```yaml
resources:  _:    type: aws:costexplorer:AnomalySubscription    get:      id: ${id}
```

```hcl
import {
  to = aws_costexplorer_anomalysubscription.example
  id = "${id}"
}
```

nameThis property is required.The unique name of the resulting resource.idThis property is required.The _unique_ provider ID of the resource to lookup.stateAny extra arguments used during the lookup.optsA bag of options that control this resource's behavior.

resource\_nameThis property is required.The unique name of the resulting resource.idThis property is required.The _unique_ provider ID of the resource to lookup.

The following state arguments are supported:

[AccountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_accountid_csharp/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[Arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_csharp/index.html)stringARN of the anomaly subscription.[Frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_csharp/index.html)stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[MonitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitorarnlists_csharp/index.html)List<string>A list of cost anomaly monitors.[Name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_csharp/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[Subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_csharp/index.html)[List<AnomalySubscriptionSubscriber>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_csharp/index.html)Dictionary<string, string>A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[TagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tagsall_csharp/index.html)Dictionary<string, string>A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[ThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_thresholdexpression_csharp/index.html)[AnomalySubscriptionThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[AccountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_accountid_go/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[Arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_go/index.html)stringARN of the anomaly subscription.[Frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_go/index.html)stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[MonitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitorarnlists_go/index.html)\[\]stringA list of cost anomaly monitors.[Name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_go/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[Subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_go/index.html)[\[\]AnomalySubscriptionSubscriberArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_go/index.html)map\[string\]stringA map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[TagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tagsall_go/index.html)map\[string\]stringA map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[ThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_thresholdexpression_go/index.html)[AnomalySubscriptionThresholdExpressionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[account\_id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_account_id_hcl/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_hcl/index.html)stringARN of the anomaly subscription.[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_hcl/index.html)stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitor\_arn\_lists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitor_arn_lists_hcl/index.html)list(string)A list of cost anomaly monitors.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_hcl/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_hcl/index.html)[list(object)](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_hcl/index.html)map(string)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[tags\_all](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_all_hcl/index.html)map(string)A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[threshold\_expression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_threshold_expression_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[accountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_accountid_java/index.html)Changes to this property will trigger replacement.StringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_java/index.html)StringARN of the anomaly subscription.[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_java/index.html)StringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitorarnlists_java/index.html)List<String>A list of cost anomaly monitors.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_java/index.html)Changes to this property will trigger replacement.StringThe name for the subscription.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_java/index.html)[List<AnomalySubscriptionSubscriber>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_java/index.html)Map<String,String>A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[tagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tagsall_java/index.html)Map<String,String>A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[thresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_thresholdexpression_java/index.html)[AnomalySubscriptionThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[accountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_accountid_nodejs/index.html)Changes to this property will trigger replacement.stringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_nodejs/index.html)stringARN of the anomaly subscription.[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_nodejs/index.html)stringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitorarnlists_nodejs/index.html)string\[\]A list of cost anomaly monitors.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_nodejs/index.html)Changes to this property will trigger replacement.stringThe name for the subscription.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_nodejs/index.html)[AnomalySubscriptionSubscriber\[\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_nodejs/index.html){\[key: string\]: string}A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[tagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tagsall_nodejs/index.html){\[key: string\]: string}A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[thresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_thresholdexpression_nodejs/index.html)[AnomalySubscriptionThresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[account\_id](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_account_id_python/index.html)Changes to this property will trigger replacement.strThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_python/index.html)strARN of the anomaly subscription.[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_python/index.html)strThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitor\_arn\_lists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitor_arn_lists_python/index.html)Sequence\[str\]A list of cost anomaly monitors.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_python/index.html)Changes to this property will trigger replacement.strThe name for the subscription.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_python/index.html)[Sequence\[AnomalySubscriptionSubscriberArgs\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_python/index.html)Mapping\[str, str\]A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[tags\_all](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_all_python/index.html)Mapping\[str, str\]A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[threshold\_expression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_threshold_expression_python/index.html)[AnomalySubscriptionThresholdExpressionArgs](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

[accountId](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_accountid_yaml/index.html)Changes to this property will trigger replacement.StringThe unique identifier for the AWS account in which the anomaly subscription ought to be created.[arn](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_arn_yaml/index.html)StringARN of the anomaly subscription.[frequency](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_frequency_yaml/index.html)StringThe frequency that anomaly reports are sent. Valid Values: `DAILY` \| `IMMEDIATE` \| `WEEKLY`.[monitorArnLists](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_monitorarnlists_yaml/index.html)List<String>A list of cost anomaly monitors.[name](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_name_yaml/index.html)Changes to this property will trigger replacement.StringThe name for the subscription.[subscribers](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_subscribers_yaml/index.html)[List<Property Map>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionsubscriber/index.html)A subscriber configuration. Multiple subscribers can be defined.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tags_yaml/index.html)Map<String>A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.[tagsAll](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_tagsall_yaml/index.html)Map<String>A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.[thresholdExpression](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#state_thresholdexpression_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpression/index.html)An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.

## Supporting Types [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#supporting-types/index.html)

#### AnomalySubscriptionSubscriber  , AnomalySubscriptionSubscriberArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionsubscriber/index.html)

[Address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_csharp/index.html)This property is required.stringThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_csharp/index.html)This property is required.stringThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

[Address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_go/index.html)This property is required.stringThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_go/index.html)This property is required.stringThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

[address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_hcl/index.html)This property is required.stringThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_hcl/index.html)This property is required.stringThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

[address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_java/index.html)This property is required.StringThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_java/index.html)This property is required.StringThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

[address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_nodejs/index.html)This property is required.stringThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_nodejs/index.html)This property is required.stringThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

[address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_python/index.html)This property is required.strThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_python/index.html)This property is required.strThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

[address](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#address_yaml/index.html)This property is required.StringThe 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#type_yaml/index.html)This property is required.StringThe type of subscription. Valid Values: `SNS` \| `EMAIL`.

#### AnomalySubscriptionThresholdExpression  , AnomalySubscriptionThresholdExpressionArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpression/index.html)

[Ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_csharp/index.html)[List<AnomalySubscriptionThresholdExpressionAnd>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_csharp/index.html)[AnomalySubscriptionThresholdExpressionCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_csharp/index.html)[AnomalySubscriptionThresholdExpressionDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[Not](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not_csharp/index.html)[AnomalySubscriptionThresholdExpressionNot](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[Ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_csharp/index.html)[List<AnomalySubscriptionThresholdExpressionOr>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_csharp/index.html)[AnomalySubscriptionThresholdExpressionTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

[Ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_go/index.html)[\[\]AnomalySubscriptionThresholdExpressionAnd](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_go/index.html)[AnomalySubscriptionThresholdExpressionCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_go/index.html)[AnomalySubscriptionThresholdExpressionDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[Not](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not_go/index.html)[AnomalySubscriptionThresholdExpressionNot](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[Ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_go/index.html)[\[\]AnomalySubscriptionThresholdExpressionOr](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_go/index.html)[AnomalySubscriptionThresholdExpressionTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

[ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_hcl/index.html)[list(object)](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[not](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_hcl/index.html)[list(object)](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

[ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_java/index.html)[List<AnomalySubscriptionThresholdExpressionAnd>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_java/index.html)[AnomalySubscriptionThresholdExpressionCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_java/index.html)[AnomalySubscriptionThresholdExpressionDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[not](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not_java/index.html)[AnomalySubscriptionThresholdExpressionNot](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_java/index.html)[List<AnomalySubscriptionThresholdExpressionOr>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_java/index.html)[AnomalySubscriptionThresholdExpressionTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

[ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_nodejs/index.html)[AnomalySubscriptionThresholdExpressionAnd\[\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_nodejs/index.html)[AnomalySubscriptionThresholdExpressionCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_nodejs/index.html)[AnomalySubscriptionThresholdExpressionDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[not](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not_nodejs/index.html)[AnomalySubscriptionThresholdExpressionNot](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_nodejs/index.html)[AnomalySubscriptionThresholdExpressionOr\[\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_nodejs/index.html)[AnomalySubscriptionThresholdExpressionTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

[ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_python/index.html)[Sequence\[AnomalySubscriptionThresholdExpressionAnd\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_python/index.html)[AnomalySubscriptionThresholdExpressionCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_python/index.html)[AnomalySubscriptionThresholdExpressionDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[not\_](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not__python/index.html)[AnomalySubscriptionThresholdExpressionNot](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_python/index.html)[Sequence\[AnomalySubscriptionThresholdExpressionOr\]](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_python/index.html)[AnomalySubscriptionThresholdExpressionTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

[ands](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ands_yaml/index.html)[List<Property Map>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionand/index.html)Return results that match both Dimension objects.[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressioncostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiondimension/index.html)Configuration block for the specific Dimension to use for.[not](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#not_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnot/index.html)Return results that do not match the Dimension object.[ors](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#ors_yaml/index.html)[List<Property Map>](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionor/index.html)Return results that match either Dimension object.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressiontags/index.html)Configuration block for the specific Tag to use for. See Tags below.

#### AnomalySubscriptionThresholdExpressionAnd  , AnomalySubscriptionThresholdExpressionAndArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionand/index.html)

[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_csharp/index.html)[AnomalySubscriptionThresholdExpressionAndCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_csharp/index.html)[AnomalySubscriptionThresholdExpressionAndDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_csharp/index.html)[AnomalySubscriptionThresholdExpressionAndTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_go/index.html)[AnomalySubscriptionThresholdExpressionAndCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_go/index.html)[AnomalySubscriptionThresholdExpressionAndDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_go/index.html)[AnomalySubscriptionThresholdExpressionAndTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_java/index.html)[AnomalySubscriptionThresholdExpressionAndCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_java/index.html)[AnomalySubscriptionThresholdExpressionAndDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_java/index.html)[AnomalySubscriptionThresholdExpressionAndTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_nodejs/index.html)[AnomalySubscriptionThresholdExpressionAndCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_nodejs/index.html)[AnomalySubscriptionThresholdExpressionAndDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_nodejs/index.html)[AnomalySubscriptionThresholdExpressionAndTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_python/index.html)[AnomalySubscriptionThresholdExpressionAndCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_python/index.html)[AnomalySubscriptionThresholdExpressionAndDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_python/index.html)[AnomalySubscriptionThresholdExpressionAndTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionanddimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionandtags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

#### AnomalySubscriptionThresholdExpressionAndCostCategory  , AnomalySubscriptionThresholdExpressionAndCostCategoryArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionandcostcategory/index.html)

[Key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_csharp/index.html)stringUnique name of the Cost Category.[MatchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_csharp/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_csharp/index.html)List<string>Specific value of the Cost Category.

[Key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_go/index.html)stringUnique name of the Cost Category.[MatchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_go/index.html)\[\]stringMatch 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_go/index.html)\[\]stringSpecific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_hcl/index.html)stringUnique name of the Cost Category.[match\_options](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#match_options_hcl/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_hcl/index.html)list(string)Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_java/index.html)StringUnique name of the Cost Category.[matchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_java/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_java/index.html)List<String>Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_nodejs/index.html)stringUnique name of the Cost Category.[matchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_nodejs/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_nodejs/index.html)string\[\]Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_python/index.html)strUnique name of the Cost Category.[match\_options](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#match_options_python/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_python/index.html)Sequence\[str\]Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_yaml/index.html)StringUnique name of the Cost Category.[matchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_yaml/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_yaml/index.html)List<String>Specific value of the Cost Category.

#### AnomalySubscriptionThresholdExpressionAndDimension  , AnomalySubscriptionThresholdExpressionAndDimensionArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionanddimension/index.html)

#### AnomalySubscriptionThresholdExpressionAndTags  , AnomalySubscriptionThresholdExpressionAndTagsArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionandtags/index.html)

[Key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_csharp/index.html)stringKey for the tag.[MatchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_csharp/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_csharp/index.html)List<string>Specific value of the Cost Category.

[Key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_go/index.html)stringKey for the tag.[MatchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_go/index.html)\[\]stringMatch 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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_go/index.html)\[\]stringSpecific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_hcl/index.html)stringKey for the tag.[match\_options](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#match_options_hcl/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_hcl/index.html)list(string)Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_java/index.html)StringKey for the tag.[matchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_java/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_java/index.html)List<String>Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_nodejs/index.html)stringKey for the tag.[matchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_nodejs/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_nodejs/index.html)string\[\]Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_python/index.html)strKey for the tag.[match\_options](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#match_options_python/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_python/index.html)Sequence\[str\]Specific value of the Cost Category.

[key](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#key_yaml/index.html)StringKey for the tag.[matchOptions](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#matchoptions_yaml/index.html)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](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#values_yaml/index.html)List<String>Specific value of the Cost Category.

#### AnomalySubscriptionThresholdExpressionCostCategory  , AnomalySubscriptionThresholdExpressionCostCategoryArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressioncostcategory/index.html)

#### AnomalySubscriptionThresholdExpressionDimension  , AnomalySubscriptionThresholdExpressionDimensionArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressiondimension/index.html)

#### AnomalySubscriptionThresholdExpressionNot  , AnomalySubscriptionThresholdExpressionNotArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionnot/index.html)

[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_csharp/index.html)[AnomalySubscriptionThresholdExpressionNotCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_csharp/index.html)[AnomalySubscriptionThresholdExpressionNotDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_csharp/index.html)[AnomalySubscriptionThresholdExpressionNotTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_go/index.html)[AnomalySubscriptionThresholdExpressionNotCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_go/index.html)[AnomalySubscriptionThresholdExpressionNotDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_go/index.html)[AnomalySubscriptionThresholdExpressionNotTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_java/index.html)[AnomalySubscriptionThresholdExpressionNotCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_java/index.html)[AnomalySubscriptionThresholdExpressionNotDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_java/index.html)[AnomalySubscriptionThresholdExpressionNotTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_nodejs/index.html)[AnomalySubscriptionThresholdExpressionNotCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_nodejs/index.html)[AnomalySubscriptionThresholdExpressionNotDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_nodejs/index.html)[AnomalySubscriptionThresholdExpressionNotTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_python/index.html)[AnomalySubscriptionThresholdExpressionNotCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_python/index.html)[AnomalySubscriptionThresholdExpressionNotDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_python/index.html)[AnomalySubscriptionThresholdExpressionNotTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnotdimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionnottags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

#### AnomalySubscriptionThresholdExpressionNotCostCategory  , AnomalySubscriptionThresholdExpressionNotCostCategoryArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionnotcostcategory/index.html)

#### AnomalySubscriptionThresholdExpressionNotDimension  , AnomalySubscriptionThresholdExpressionNotDimensionArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionnotdimension/index.html)

#### AnomalySubscriptionThresholdExpressionNotTags  , AnomalySubscriptionThresholdExpressionNotTagsArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionnottags/index.html)

#### AnomalySubscriptionThresholdExpressionOr  , AnomalySubscriptionThresholdExpressionOrArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionor/index.html)

[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_csharp/index.html)[AnomalySubscriptionThresholdExpressionOrCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_csharp/index.html)[AnomalySubscriptionThresholdExpressionOrDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_csharp/index.html)[AnomalySubscriptionThresholdExpressionOrTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[CostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_go/index.html)[AnomalySubscriptionThresholdExpressionOrCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[Dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_go/index.html)[AnomalySubscriptionThresholdExpressionOrDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[Tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_go/index.html)[AnomalySubscriptionThresholdExpressionOrTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_hcl/index.html)[object](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_java/index.html)[AnomalySubscriptionThresholdExpressionOrCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_java/index.html)[AnomalySubscriptionThresholdExpressionOrDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_java/index.html)[AnomalySubscriptionThresholdExpressionOrTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_nodejs/index.html)[AnomalySubscriptionThresholdExpressionOrCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_nodejs/index.html)[AnomalySubscriptionThresholdExpressionOrDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_nodejs/index.html)[AnomalySubscriptionThresholdExpressionOrTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[cost\_category](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#cost_category_python/index.html)[AnomalySubscriptionThresholdExpressionOrCostCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_python/index.html)[AnomalySubscriptionThresholdExpressionOrDimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_python/index.html)[AnomalySubscriptionThresholdExpressionOrTags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

[costCategory](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#costcategory_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionorcostcategory/index.html)Configuration block for the filter that's based on values. See Cost Category below.[dimension](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#dimension_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionordimension/index.html)Configuration block for the specific Dimension to use for.[tags](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#tags_yaml/index.html)[Property Map](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/#anomalysubscriptionthresholdexpressionortags/index.html)A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

#### AnomalySubscriptionThresholdExpressionOrCostCategory  , AnomalySubscriptionThresholdExpressionOrCostCategoryArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionorcostcategory/index.html)

#### AnomalySubscriptionThresholdExpressionOrDimension  , AnomalySubscriptionThresholdExpressionOrDimensionArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionordimension/index.html)

#### AnomalySubscriptionThresholdExpressionOrTags  , AnomalySubscriptionThresholdExpressionOrTagsArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressionortags/index.html)

#### AnomalySubscriptionThresholdExpressionTags  , AnomalySubscriptionThresholdExpressionTagsArgs   [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#anomalysubscriptionthresholdexpressiontags/index.html)

## Import [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#import/index.html)

### Identity Schema [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#identity-schema/index.html)

#### Required [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#required/index.html)

- `arn` (String) Amazon Resource Name (ARN) of the Cost Explorer anomaly subscription.

Using `pulumi import`, import `aws.costexplorer.AnomalySubscription` using the `id`. For example:

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

Copy

To learn more about importing existing cloud resources, see [Importing resources](/content/docs/using-pulumi/adopting-pulumi/import/index.html).

## Package Details [Anchor](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/\#package-details/index.html)

Viewing docs for AWS v7.32.0

published on Friday, May 29, 2026 by Pulumi

[Schema (JSON)](/content/registry/packages/aws/schema.json)

[pulumi/pulumi-aws](https://github.com/pulumi/pulumi-aws)

v7.32.0 (7.x, latest)v6.83.1 (6.x)v5.43.0 (5.x)

## On this page

## On this page

- Copy Page

[Scroll to top](/content/registry/packages/aws/api-docs/costexplorer/anomalysubscription/# "Scroll to top"/index.html)

#### Try Pulumi Cloud free.  Your team will thank you.

[Start free trial](https://app.pulumi.com/signup?utm_source=registry&utm_medium=right-rail-banner&utm_campaign=try-pulumi-cloud&iaid=docs-try-pulumi-cloud-ad)
