Skip to content

Commit 84b7e63

Browse files
committed
feat: add missing waf_logs log drain type
1 parent 9839bbd commit 84b7e63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/resources/log_drain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "netlify_log_drain" "blog" {
3232

3333
- `destination` (String) One of datadog, newrelic, logflare, s3, splunkcloud, http, axiom, or azure
3434
- `exclude_pii` (Boolean)
35-
- `log_types` (Set of String) One or more of user_traffic, functions, edge_functions, and deploys
35+
- `log_types` (Set of String) One or more of user_traffic, functions, edge_functions, waf_logs, and deploys
3636
- `service_config` (Attributes) (see [below for nested schema](#nestedatt--service_config))
3737
- `site_id` (String)
3838

internal/provider/log_drain_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ func (r *logDrainResource) Schema(_ context.Context, _ resource.SchemaRequest, r
147147
"log_types": schema.SetAttribute{
148148
Required: true,
149149
ElementType: types.StringType,
150-
Description: "One or more of user_traffic, functions, edge_functions, and deploys",
150+
Description: "One or more of user_traffic, functions, edge_functions, waf_logs, and deploys",
151151
Validators: []validator.Set{
152152
setvalidator.ValueStringsAre(
153-
stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "deploys"),
153+
stringvalidator.OneOf("user_traffic", "functions", "edge_functions", "deploys", "waf_logs"),
154154
),
155155
},
156156
},

0 commit comments

Comments
 (0)