From f842b9253d0909441c0ac275020cadfb3d7e790a Mon Sep 17 00:00:00 2001 From: Ramon Snir Date: Mon, 9 Sep 2024 12:25:27 -0400 Subject: [PATCH] add WAF logs to the log drains resource --- docs/resources/log_drain.md | 2 +- go.sum | 2 -- internal/provider/log_drain_resource.go | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/resources/log_drain.md b/docs/resources/log_drain.md index e465541..04ce2dd 100644 --- a/docs/resources/log_drain.md +++ b/docs/resources/log_drain.md @@ -32,7 +32,7 @@ resource "netlify_log_drain" "blog" { - `destination` (String) One of datadog, newrelic, logflare, s3, splunkcloud, http, axiom, or azure - `exclude_pii` (Boolean) -- `log_types` (Set of String) One or more of user_traffic, functions, edge_functions, and deploys +- `log_types` (Set of String) One or more of user_traffic, functions, edge_functions, waf, and deploys - `service_config` (Attributes) (see [below for nested schema](#nestedatt--service_config)) - `site_id` (String) diff --git a/go.sum b/go.sum index 3e570c7..1b78924 100644 --- a/go.sum +++ b/go.sum @@ -310,8 +310,6 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= -golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= -golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/internal/provider/log_drain_resource.go b/internal/provider/log_drain_resource.go index 78b6fd1..65b3f9c 100644 --- a/internal/provider/log_drain_resource.go +++ b/internal/provider/log_drain_resource.go @@ -147,10 +147,10 @@ func (r *logDrainResource) Schema(_ context.Context, _ resource.SchemaRequest, r "log_types": schema.SetAttribute{ Required: true, ElementType: types.StringType, - Description: "One or more of user_traffic, functions, edge_functions, and deploys", + Description: "One or more of user_traffic, functions, edge_functions, waf, and deploys", Validators: []validator.Set{ setvalidator.ValueStringsAre( - stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "deploys"), + stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "waf", "deploys"), ), }, },