Skip to content

Commit

Permalink
Merge pull request #2983 from cehrig/cehrig/magic-ids-logpush-dataset
Browse files Browse the repository at this point in the history
Adds support for magic_ids_detections Logpush dataset
  • Loading branch information
jacobbednarz authored Dec 5, 2023
2 parents fb20524 + 48901c3 commit 41da5e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/2983.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/cloudflare_logpush_job: add support for `magic_ids_detections`.
```
2 changes: 1 addition & 1 deletion docs/resources/logpush_job.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ resource "cloudflare_logpush_job" "example_job" {

### Required

- `dataset` (String) The kind of the dataset to use with the logpush job. Available values: `access_requests`, `casb_findings`, `firewall_events`, `http_requests`, `spectrum_events`, `nel_reports`, `audit_logs`, `gateway_dns`, `gateway_http`, `gateway_network`, `dns_logs`, `network_analytics_logs`, `workers_trace_events`, `device_posture_results`, `zero_trust_network_sessions`.
- `dataset` (String) The kind of the dataset to use with the logpush job. Available values: `access_requests`, `casb_findings`, `firewall_events`, `http_requests`, `spectrum_events`, `nel_reports`, `audit_logs`, `gateway_dns`, `gateway_http`, `gateway_network`, `dns_logs`, `network_analytics_logs`, `workers_trace_events`, `device_posture_results`, `zero_trust_network_sessions`, `magic_ids_detections`.
- `destination_conf` (String) Uniquely identifies a resource (such as an s3 bucket) where data will be pushed. Additional configuration parameters supported by the destination may be included. See [Logpush destination documentation](https://developers.cloudflare.com/logs/reference/logpush-api-configuration#destination).

### Optional
Expand Down
2 changes: 2 additions & 0 deletions internal/sdkv2provider/schema_cloudflare_logpush_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func resourceCloudflareLogpushJobSchema() map[string]*schema.Schema {
"workers_trace_events",
"device_posture_results",
"zero_trust_network_sessions",
"magic_ids_detections",
}, false),
Description: fmt.Sprintf(
"The kind of the dataset to use with the logpush job. %s",
Expand All @@ -78,6 +79,7 @@ func resourceCloudflareLogpushJobSchema() map[string]*schema.Schema {
"workers_trace_events",
"device_posture_results",
"zero_trust_network_sessions",
"magic_ids_detections",
}),
),
},
Expand Down

0 comments on commit 41da5e3

Please sign in to comment.