Skip to main content

Cloudflare/data Security

@swamp/cloudflare/data-securityv2026.10.23.1· AGPL-3.0-or-later· 3d agoBEHAVIORS
01README

Cloudflare data-security infrastructure models

02Release Notes
  • Updated: finding_types
  • Updated: policies
  • Updated: webhooks
03Behaviors3
@swamp/cloudflare/data-security/finding-typesv2026.10.23.1finding_types.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
applies_to_all_integrations?booleanWhen true, this finding type applies to every current and future integration of the vendor.
description?stringHuman-readable description of the finding type. Cannot be empty. Maximum 4096 characters.
integration_ids?arrayRequired and non-empty when applies_to_all_integrations is false; omit when it is true.
name?stringHuman-readable name for the finding type. Maximum 256 characters.
severity?stringDefault severity used when no integration-specific severity override exists.
asset_class?stringAsset class this finding type applies to (PascalCase, e.g. GoogleWorkspaceFile)
asset_vendor?stringCanonical vendor enum for the platform whose assets this finding type evaluates.
expression?stringRego expression body for the policy. `package cloudflare.casb.custom` and `import rego.v1` are added automatically. Do not include package or import declarations. This field cannot be changed after creation. Maximum 4096 characters.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Finding Types
fn get(id: string)
Get a Finding Types
ArgumentTypeDescription
idstringThe ID of the Finding Types
fn lookup(allowMissing?: boolean)
Look up an existing Finding Types by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
fn adopt(id: string)
Import an existing Finding Types by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Finding Types to import
fn update(identifier?: string)
Update Finding Types attributes
ArgumentTypeDescription
identifier?stringTarget a specific Finding Types by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Finding Types
ArgumentTypeDescription
idstringThe ID of the Finding Types
fn sync(identifier?: string)
Sync Finding Types state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Finding Types by id (e.g. one discovered by list)

Resources

state(infinite)— Finding Types resource state
lookupResult(infinite)— Outcome of the most recent lookup
@swamp/cloudflare/data-security/policiesv2026.10.23.1policies.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
actions?objectActions to execute when this policy is triggered, grouped by action type.\nA policy must contain at least one action across all groups and may include\nat most one remediation.
applies_to_all_integrations?booleanWhen true, the policy applies to all integrations for the account. When false, integration_ids must be provided.
description?stringOptional description of what this policy does.
display_name?stringDisplay name for the policy configuration.
enabled?booleanBoolean specifying if the policy is enabled or disabled.
integration_ids?arrayThe integrations this policy applies to. Required when applies_to_all_integrations is false.
finding_type_id?stringThe finding type this policy is associated with. All remediation actions must match this finding type.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Policies
fn get(id: string)
Get a Policies
ArgumentTypeDescription
idstringThe ID of the Policies
fn lookup(allowMissing?: boolean)
Look up an existing Policies by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
fn adopt(id: string)
Import an existing Policies by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Policies to import
fn update(identifier?: string)
Update Policies attributes
ArgumentTypeDescription
identifier?stringTarget a specific Policies by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Policies
ArgumentTypeDescription
idstringThe ID of the Policies
fn sync(identifier?: string)
Sync Policies state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Policies by id (e.g. one discovered by list)

Resources

state(infinite)— Policies resource state
lookupResult(infinite)— Outcome of the most recent lookup
@swamp/cloudflare/data-security/webhooksv2026.10.23.1webhooks.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
authentication_type?enumType of authentication used for the webhook.
destination_url?stringTarget URL for the webhook configuration. Where resulting data will be sent.
headers?arrayList of custom headers to include in webhook requests.
label?stringAccount-specified display label for the webhook configuration.
signing_secret?stringSecret key used for HMAC signing when authentication_type is "HMAC-Signing".
status?enumStatus of the webhook configuration. Defaults to enabled when omitted.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Webhooks
fn get(id: string)
Get a Webhooks
ArgumentTypeDescription
idstringThe ID of the Webhooks
fn lookup(allowMissing?: boolean)
Look up an existing Webhooks by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
fn adopt(id: string)
Import an existing Webhooks by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Webhooks to import
fn update(identifier?: string)
Update Webhooks attributes
ArgumentTypeDescription
identifier?stringTarget a specific Webhooks by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Webhooks
ArgumentTypeDescription
idstringThe ID of the Webhooks
fn sync(identifier?: string)
Sync Webhooks state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Webhooks by id (e.g. one discovered by list)

Resources

state(infinite)— Webhooks resource state
lookupResult(infinite)— Outcome of the most recent lookup
04Previous Versions12
2026.10.20.1AGPL-3.0-or-later
  • Updated: finding_types
  • Updated: policies
  • Updated: webhooks

Modified 3 behaviors

2026.10.16.2AGPL-3.0-or-later
2026.10.16.1AGPL-3.0-or-later(was none)
  • Added: finding_types

Added 1 behaviors

2026.10.13.1
  • Updated: policies
  • Updated: webhooks
2026.09.29.2
  • Updated: policies
  • Updated: webhooks
2026.09.29.1
  • Updated: policies
  • Updated: webhooks
2026.09.19.1
  • Updated: webhooks
2026.08.28.1
  • Added: policies

Added 1 behaviors

2026.07.21.1
  • Updated: webhooks
2026.07.18.2

Modified 1 behaviors

2026.07.15.1

Removed 1 behaviors

2026.07.14.1
  • Added: webhooks
  • Added: workflows
05Stats
A
100 / 100
Downloads
25
Archive size
17.5 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
06Platforms
07Labels