import * as core from "@terrascript/core"; export interface SubscriberArgs extends core.SchemaArgs { address: string | core.StringOut; type: string | core.StringOut; } export class Subscriber extends core.Schema { @core.attr(String) public address!: string | core.StringOut; @core.attr(String) public type!: string | core.StringOut; } export interface AnomalySubscriptionArgs extends core.ResourceArgs { /** * (Optional) The unique identifier for the AWS account in which the anomaly subscription ought to be c * reated. */ accountId?: string | core.StringOut; /** * (Required) The frequency that anomaly reports are sent. Valid Values: `DAILY` | `IMMEDIATE` | `WEEKL * Y`. */ frequency: string | core.StringOut; /** * (Required) A list of cost anomaly monitors. */ monitorArnList: core.Array | core.ArrayOut; /** * (Required) The name for the subscription. */ name: string | core.StringOut; /** * (Required) A subscriber configuration. Multiple subscribers can be defined. */ subscriber: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) The dollar value that triggers a notification if the threshold is exceeded. */ threshold: number | core.NumberOut; } export class AnomalySubscription extends core.Resource { /** * (Optional) The unique identifier for the AWS account in which the anomaly subscription ought to be c * reated. */ @core.attr(String, { computed: true }) public accountId?: string | core.StringOut; /** * ARN of the anomaly subscription. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) The frequency that anomaly reports are sent. Valid Values: `DAILY` | `IMMEDIATE` | `WEEKL * Y`. */ @core.attr(String) public frequency!: string | core.StringOut; /** * Unique ID of the anomaly subscription. Same as `arn`. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) A list of cost anomaly monitors. */ @core.attr(String, { kind: "array" }) public monitorArnList!: core.Array | core.ArrayOut; /** * (Required) The name for the subscription. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) A subscriber configuration. Multiple subscribers can be defined. */ @core.attr(Subscriber, { kind: "array" }) public subscriber!: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) The dollar value that triggers a notification if the threshold is exceeded. */ @core.attr(Number) public threshold!: number | core.NumberOut; constructor(name: string, args?: AnomalySubscriptionArgs) { super(name, "aws_ce_anomaly_subscription", args); } public override getNamespace(): string { return "aws_ce"; } }