Provides a Datadog monitor config policy resource. This can be used to create and manage Datadog monitor config policies.
resource "datadog_monitor_config_policy" "test" {
policy_type = "tag"
tag_policy {
tag_key = "env"
tag_key_required = false
valid_tag_values = ["staging", "prod"]
}
}
policy_type
(String) The monitor config policy type Valid values are tag
.tag_policy
(Block List, Max: 1) Config for a tag policy. Only set if policy_type
is tag
. (see below for nested schema)id
(String) The ID of this resource.tag_policy
Required:
tag_key
(String) The key of the tagtag_key_required
(Boolean) If a tag key is required for monitor creationvalid_tag_values
(List of String) Valid values for the tag