From ef39ec275ab34ec5bec78c79381d4a9fb70ee223 Mon Sep 17 00:00:00 2001 From: Rajdeep kaur Date: Tue, 9 Apr 2024 21:31:59 +0530 Subject: [PATCH 1/2] Adds support for page_shield_events Logpush dataset --- .changelog/3236.txt | 3 +++ docs/resources/logpush_job.md | 2 +- internal/sdkv2provider/schema_cloudflare_logpush_job.go | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changelog/3236.txt diff --git a/.changelog/3236.txt b/.changelog/3236.txt new file mode 100644 index 0000000000..dbac797428 --- /dev/null +++ b/.changelog/3236.txt @@ -0,0 +1,3 @@ +```release-note:new-data-source +Add support for logpush page_shield_events +``` diff --git a/docs/resources/logpush_job.md b/docs/resources/logpush_job.md index fe42c60787..386f231ef5 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`, `magic_ids_detections`. +- `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`, `page_shield_events`. - `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 288fcec0e8..c0ff60b8a8 100644 --- a/internal/sdkv2provider/schema_cloudflare_logpush_job.go +++ b/internal/sdkv2provider/schema_cloudflare_logpush_job.go @@ -28,6 +28,7 @@ func resourceCloudflareLogpushJobSchema() map[string]*schema.Schema { "device_posture_results", "zero_trust_network_sessions", "magic_ids_detections", + "page_shield_events", } frequencyAllowedValues := []string{"high", "low"} outputTypeAllowedValues := []string{"ndjson", "csv"} From 6c5942ab1cca64d455bb0cb81bf2220189b0f852 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Thu, 11 Apr 2024 09:57:28 +1000 Subject: [PATCH 2/2] Update and rename 3236.txt to 3237.txt --- .changelog/3236.txt | 3 --- .changelog/3237.txt | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 .changelog/3236.txt create mode 100644 .changelog/3237.txt diff --git a/.changelog/3236.txt b/.changelog/3236.txt deleted file mode 100644 index dbac797428..0000000000 --- a/.changelog/3236.txt +++ /dev/null @@ -1,3 +0,0 @@ -```release-note:new-data-source -Add support for logpush page_shield_events -``` diff --git a/.changelog/3237.txt b/.changelog/3237.txt new file mode 100644 index 0000000000..c4d828c538 --- /dev/null +++ b/.changelog/3237.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +cloudflare/resource_logpush_job: Add support for `page_shield_events` +```