Skip to content

Commit

Permalink
add WAF logs to the log drains resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonsnir committed Sep 9, 2024
1 parent c691a9c commit 68ce23d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/resources/log_drain.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_logs, and deploys
- `service_config` (Attributes) (see [below for nested schema](#nestedatt--service_config))
- `site_id` (String)

Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/log_drain_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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_logs, and deploys",
Validators: []validator.Set{
setvalidator.ValueStringsAre(
stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "deploys"),
stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "waf_logs", "deploys"),
),
},
},
Expand Down

0 comments on commit 68ce23d

Please sign in to comment.