From 5d28d38c85bb10f47dfb902df4b2f92c0a5a2a70 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 5 Oct 2021 09:58:53 -0700 Subject: [PATCH] Fix typo in uptime check (#5276) (#3700) Signed-off-by: Modular Magician --- .changelog/5276.txt | 3 +++ google-beta/resource_monitoring_uptime_check_config.go | 4 ++-- website/docs/r/monitoring_uptime_check_config.html.markdown | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changelog/5276.txt diff --git a/.changelog/5276.txt b/.changelog/5276.txt new file mode 100644 index 0000000000..a02783ad73 --- /dev/null +++ b/.changelog/5276.txt @@ -0,0 +1,3 @@ +```release-note:bug +monitoring: fixed typo in `google_monitoring_uptime_check_config` where `NOT_MATCHES_REGEX` could not be specified. +``` diff --git a/google-beta/resource_monitoring_uptime_check_config.go b/google-beta/resource_monitoring_uptime_check_config.go index 5b23e64514..765b1a83c3 100644 --- a/google-beta/resource_monitoring_uptime_check_config.go +++ b/google-beta/resource_monitoring_uptime_check_config.go @@ -68,8 +68,8 @@ func resourceMonitoringUptimeCheckConfig() *schema.Resource { "matcher": { Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringInSlice([]string{"CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", "NON_MATCHES_REGEX", ""}, false), - Description: `The type of content matcher that will be applied to the server output, compared to the content string when the check is run. Default value: "CONTAINS_STRING" Possible values: ["CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", "NON_MATCHES_REGEX"]`, + ValidateFunc: validation.StringInSlice([]string{"CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", "NOT_MATCHES_REGEX", ""}, false), + Description: `The type of content matcher that will be applied to the server output, compared to the content string when the check is run. Default value: "CONTAINS_STRING" Possible values: ["CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", "NOT_MATCHES_REGEX"]`, Default: "CONTAINS_STRING", }, }, diff --git a/website/docs/r/monitoring_uptime_check_config.html.markdown b/website/docs/r/monitoring_uptime_check_config.html.markdown index c826c1769d..ed6d6359b1 100644 --- a/website/docs/r/monitoring_uptime_check_config.html.markdown +++ b/website/docs/r/monitoring_uptime_check_config.html.markdown @@ -184,7 +184,7 @@ The following arguments are supported: (Optional) The type of content matcher that will be applied to the server output, compared to the content string when the check is run. Default value is `CONTAINS_STRING`. - Possible values are `CONTAINS_STRING`, `NOT_CONTAINS_STRING`, `MATCHES_REGEX`, and `NON_MATCHES_REGEX`. + Possible values are `CONTAINS_STRING`, `NOT_CONTAINS_STRING`, `MATCHES_REGEX`, and `NOT_MATCHES_REGEX`. The `http_check` block supports: