import * as core from "@terrascript/core"; export interface AnomalyMonitorArgs extends core.ResourceArgs { /** * (Required, if `monitor_type` is `DIMENSIONAL`) The dimensions to evaluate. Valid values: `SERVICE`. */ monitorDimension?: string | core.StringOut; /** * (Required, if `monitor_type` is `CUSTOM`) A valid JSON representation for the [Expression](https://d * ocs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) object. */ monitorSpecification?: string | core.StringOut; /** * (Required) The possible type values. Valid values: `DIMENSIONAL` | `CUSTOM`. */ monitorType: string | core.StringOut; /** * (Required) The name of the monitor. */ name: string | core.StringOut; /** * (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; } export class AnomalyMonitor extends core.Resource { /** * ARN of the anomaly monitor. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Unique ID of the anomaly monitor. Same as `arn`. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required, if `monitor_type` is `DIMENSIONAL`) The dimensions to evaluate. Valid values: `SERVICE`. */ @core.attr(String) public monitorDimension?: string | core.StringOut; /** * (Required, if `monitor_type` is `CUSTOM`) A valid JSON representation for the [Expression](https://d * ocs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) object. */ @core.attr(String) public monitorSpecification?: string | core.StringOut; /** * (Required) The possible type values. Valid values: `DIMENSIONAL` | `CUSTOM`. */ @core.attr(String) public monitorType!: string | core.StringOut; /** * (Required) The name of the monitor. */ @core.attr(String) public name!: string | core.StringOut; /** * (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; constructor(name: string, args?: AnomalyMonitorArgs) { super(name, "aws_ce_anomaly_monitor", args); } public override getNamespace(): string { return "aws_ce"; } }