From c638e7dc2152bfc0ac6cada224eb8c20ec9790e7 Mon Sep 17 00:00:00 2001 From: Christian Ehrig Date: Mon, 4 Dec 2023 20:10:42 +0100 Subject: [PATCH 1/2] Adds support for magic_ids_detections Logpush dataset --- .changelog/2983.txt | 3 +++ docs/resources/logpush_job.md | 2 +- internal/sdkv2provider/schema_cloudflare_logpush_job.go | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changelog/2983.txt diff --git a/.changelog/2983.txt b/.changelog/2983.txt new file mode 100644 index 0000000000..ec193bd2ae --- /dev/null +++ b/.changelog/2983.txt @@ -0,0 +1,3 @@ +```release-note:enhancement + resource/cloudflare_logpush_job: add support for `magic_ids_detections`. + ``` \ No newline at end of file diff --git a/docs/resources/logpush_job.md b/docs/resources/logpush_job.md index de6cb11d32..3d0dd308df 100644 --- a/docs/resources/logpush_job.md +++ b/docs/resources/logpush_job.md @@ -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 diff --git a/internal/sdkv2provider/schema_cloudflare_logpush_job.go b/internal/sdkv2provider/schema_cloudflare_logpush_job.go index 3a7511799f..565bf3220c 100644 --- a/internal/sdkv2provider/schema_cloudflare_logpush_job.go +++ b/internal/sdkv2provider/schema_cloudflare_logpush_job.go @@ -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", @@ -78,6 +79,7 @@ func resourceCloudflareLogpushJobSchema() map[string]*schema.Schema { "workers_trace_events", "device_posture_results", "zero_trust_network_sessions", + "magic_ids_detections", }), ), }, From 48901c302fba9357e913a1ebcfa35204d30b6808 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Tue, 5 Dec 2023 14:16:31 +1100 Subject: [PATCH 2/2] update changelog entry --- .changelog/2983.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changelog/2983.txt b/.changelog/2983.txt index ec193bd2ae..0a74adeb20 100644 --- a/.changelog/2983.txt +++ b/.changelog/2983.txt @@ -1,3 +1,3 @@ ```release-note:enhancement - resource/cloudflare_logpush_job: add support for `magic_ids_detections`. - ``` \ No newline at end of file +resource/cloudflare_logpush_job: add support for `magic_ids_detections`. +```