Skip to main content

Cloudflare/dlp

@swamp/cloudflare/dlpv2026.06.24.1· 13d agoMODELS
01README

Cloudflare dlp infrastructure models

02Release Notes
  • Added: data_classes
  • Added: data_tag_categories
  • Added: sensitivity_groups
03Models10
@swamp/cloudflare/dlp/customv2026.06.08.1custom.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
ai_context_enabled?boolean
allowed_match_count?numberRelated DLP policies will trigger when the match count exceeds the number set.
confidence_threshold?string
context_awareness?objectScan the context of predefined entries to only return matches surrounded by keywords.
data_classes?arrayData class IDs to associate with the profile.
data_tags?arrayData tag IDs to associate with the profile.
description?stringThe description of the profile.
entries?array
namestring
ocr_enabled?boolean
sensitivity_levels?arraySensitivity levels to associate with the profile.
shared_entries?arrayEntries from other profiles (e.g. pre-defined Cloudflare profiles, or your Microsoft Information Protection profiles).
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 Custom
fn get(id: string)
Get a Custom
ArgumentTypeDescription
idstringThe ID of the Custom
fn update()
Update Custom attributes
fn delete(id: string)
Delete the Custom
ArgumentTypeDescription
idstringThe ID of the Custom
fn sync()
Sync Custom state from Cloudflare

Resources

state(infinite)— Custom resource state
@swamp/cloudflare/dlp/custom-prompt-topicsv2026.06.08.1custom_prompt_topics.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
description?string
enabledboolean
namestring
topicstring
profile_id?string
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 Custom Prompt Topics
fn get(id: string)
Get a Custom Prompt Topics
ArgumentTypeDescription
idstringThe ID of the Custom Prompt Topics
fn update()
Update Custom Prompt Topics attributes
fn delete(id: string)
Delete the Custom Prompt Topics
ArgumentTypeDescription
idstringThe ID of the Custom Prompt Topics
fn sync()
Sync Custom Prompt Topics state from Cloudflare

Resources

state(infinite)— Custom Prompt Topics resource state
@swamp/cloudflare/dlp/data-classesv2026.06.24.1data_classes.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
data_tagsarray
description?string
expressionstring
namestring
sensitivity_levelsarray
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 Data Classes
fn get(id: string)
Get a Data Classes
ArgumentTypeDescription
idstringThe ID of the Data Classes
fn update()
Update Data Classes attributes
fn delete(id: string)
Delete the Data Classes
ArgumentTypeDescription
idstringThe ID of the Data Classes
fn sync()
Sync Data Classes state from Cloudflare

Resources

state(infinite)— Data Classes resource state
@swamp/cloudflare/dlp/data-tag-categoriesv2026.06.24.1data_tag_categories.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
description?string
namestring
tags?arrayTags to create with the category. Mutually exclusive with `template_id`.
template_id?string
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 Data Tag Categories
fn get(id: string)
Get a Data Tag Categories
ArgumentTypeDescription
idstringThe ID of the Data Tag Categories
fn update()
Update Data Tag Categories attributes
fn delete(id: string)
Delete the Data Tag Categories
ArgumentTypeDescription
idstringThe ID of the Data Tag Categories
fn sync()
Sync Data Tag Categories state from Cloudflare

Resources

state(infinite)— Data Tag Categories resource state
@swamp/cloudflare/dlp/datasetsv2026.06.08.1datasets.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
case_sensitive?booleanOnly applies to custom word lists.\nDetermines if the words should be matched in a case-sensitive manner\nCannot be set to false if `secret` is true or undefined
description?stringThe description of the dataset.
namestring
encoding_version?numberDataset encoding version\n\nNon-secret custom word lists with no header are always version 1.\nSecret EDM lists with no header are version 1.\nMulticolumn CSV with headers are version 2.\nOmitting this field provides the default value 0, which is interpreted\nthe same as 1.
secret?booleanGenerate a secret dataset.\n\nIf true, the response will include a secret to use with the EDM encoder.\nIf false, the response has no secret and the dataset is uploaded in plaintext.
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 Datasets
fn get(id: string)
Get a Datasets
ArgumentTypeDescription
idstringThe ID of the Datasets
fn update()
Update Datasets attributes
fn delete(id: string)
Delete the Datasets
ArgumentTypeDescription
idstringThe ID of the Datasets
fn sync()
Sync Datasets state from Cloudflare

Resources

state(infinite)— Datasets resource state
@swamp/cloudflare/dlp/document-fingerprintsv2026.06.08.1document_fingerprints.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
description?string
match_percentnumber
namestring
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 Document Fingerprints
fn get(id: string)
Get a Document Fingerprints
ArgumentTypeDescription
idstringThe ID of the Document Fingerprints
fn update()
Update Document Fingerprints attributes
fn delete(id: string)
Delete the Document Fingerprints
ArgumentTypeDescription
idstringThe ID of the Document Fingerprints
fn sync()
Sync Document Fingerprints state from Cloudflare

Resources

state(infinite)— Document Fingerprints resource state
@swamp/cloudflare/dlp/entriesv2026.06.08.1entries.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
enabledboolean
description?string
namestring
patternobject
profile_id?string
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 Entries
fn get(id: string)
Get a Entries
ArgumentTypeDescription
idstringThe ID of the Entries
fn update()
Update Entries attributes
fn delete(id: string)
Delete the Entries
ArgumentTypeDescription
idstringThe ID of the Entries
fn sync()
Sync Entries state from Cloudflare

Resources

state(infinite)— Entries resource state
@swamp/cloudflare/dlp/predefinedv2026.06.08.1predefined.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
ai_context_enabled?boolean
allowed_match_count?number
confidence_threshold?string
context_awareness?objectScan the context of predefined entries to only return matches surrounded by keywords.
entries?array
ocr_enabled?boolean
profile_idstring
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 Predefined
fn get(id: string)
Get a Predefined
ArgumentTypeDescription
idstringThe ID of the Predefined
fn update()
Update Predefined attributes
fn delete(id: string)
Delete the Predefined
ArgumentTypeDescription
idstringThe ID of the Predefined
fn sync()
Sync Predefined state from Cloudflare

Resources

state(infinite)— Predefined resource state
@swamp/cloudflare/dlp/rulesv2026.06.08.1rules.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
actionobject
conditionsarrayTriggered if all conditions match.
description?string
enabledboolean
namestring
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 Rules
fn get(id: string)
Get a Rules
ArgumentTypeDescription
idstringThe ID of the Rules
fn update()
Update Rules attributes
fn delete(id: string)
Delete the Rules
ArgumentTypeDescription
idstringThe ID of the Rules
fn sync()
Sync Rules state from Cloudflare

Resources

state(infinite)— Rules resource state
@swamp/cloudflare/dlp/sensitivity-groupsv2026.06.24.1sensitivity_groups.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
description?string
levels?arrayLevels to create with the group. Mutually exclusive with `template_id`.
namestring
template_id?string
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 Sensitivity Groups
fn get(id: string)
Get a Sensitivity Groups
ArgumentTypeDescription
idstringThe ID of the Sensitivity Groups
fn update()
Update Sensitivity Groups attributes
fn delete(id: string)
Delete the Sensitivity Groups
ArgumentTypeDescription
idstringThe ID of the Sensitivity Groups
fn sync()
Sync Sensitivity Groups state from Cloudflare

Resources

state(infinite)— Sensitivity Groups resource state
04Previous Versions3
2026.06.08.2Jun 8, 2026
  • Updated: custom_prompt_topics
  • Updated: datasets
  • Updated: document_fingerprints
  • Updated: rules
  • Updated: entries
  • Updated: custom
  • Updated: predefined
2026.05.29.1May 29, 2026
  • Updated: custom_prompt_topics
  • Updated: datasets
  • Updated: document_fingerprints
  • Updated: rules
  • Updated: entries
  • Updated: custom
  • Updated: predefined
2026.05.22.1May 22, 2026
  • Added: custom_prompt_topics
  • Added: datasets
  • Added: document_fingerprints
  • Added: rules
  • Added: entries
  • Added: custom
  • Added: predefined
05Stats
A
100 / 100
Downloads
0
Archive size
28.9 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
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels