azurermCostAnomalyAlert
Manages a Cost Anomaly Alert.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.costAnomalyAlert.CostAnomalyAlert(this, "example", {
display_name: "Alert DisplayName",
email_addresses: ["example@test.net"],
email_subject: "My Test Anomaly Alert",
name: "alertname",
});
Arguments Reference
The following arguments are supported:
-
name
- (Required) The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens. -
displayName
- (Required) The display name which should be used for this Cost Anomaly Alert. -
emailAddresses
- (Required) Specifies a list of email addresses which the Anomaly Alerts are send to. -
emailSubject
- (Required) The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.
message
- (Optional) The message of the Cost Anomaly Alert. Maximum length of the message is 250.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Cost Anomaly Alert.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Cost Anomaly Alert.read
- (Defaults to 5 minutes) Used when retrieving the Cost Anomaly Alert.update
- (Defaults to 30 minutes) Used when updating the Cost Anomaly Alert.delete
- (Defaults to 30 minutes) Used when deleting the Cost Anomaly Alert.
Import
Cost Anomaly Alerts can be imported using the resourceId
, e.g.