Cloudflare/dlp
@swamp/cloudflare/dlpv2026.06.24.1
01README
Cloudflare dlp infrastructure models
02Release Notes
- Added: data_classes
- Added: data_tag_categories
- Added: sensitivity_groups
03Models
@swamp/cloudflare/dlp/customv2026.06.08.1custom.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| ai_context_enabled? | boolean | |
| allowed_match_count? | number | Related DLP policies will trigger when the match count exceeds the number set. |
| confidence_threshold? | string | |
| context_awareness? | object | Scan the context of predefined entries to only return matches surrounded by keywords. |
| data_classes? | array | Data class IDs to associate with the profile. |
| data_tags? | array | Data tag IDs to associate with the profile. |
| description? | string | The description of the profile. |
| entries? | array | |
| name | string | |
| ocr_enabled? | boolean | |
| sensitivity_levels? | array | Sensitivity levels to associate with the profile. |
| shared_entries? | array | Entries from other profiles (e.g. pre-defined Cloudflare profiles, or your Microsoft Information Protection profiles). |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Custom |
fn update()
Update Custom attributes
fn delete(id: string)
Delete the Custom
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| description? | string | |
| enabled | boolean | |
| name | string | |
| topic | string | |
| profile_id? | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Custom Prompt Topics |
fn update()
Update Custom Prompt Topics attributes
fn delete(id: string)
Delete the Custom Prompt Topics
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| data_tags | array | |
| description? | string | |
| expression | string | |
| name | string | |
| sensitivity_levels | array | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Data Classes |
fn update()
Update Data Classes attributes
fn delete(id: string)
Delete the Data Classes
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| description? | string | |
| name | string | |
| tags? | array | Tags to create with the category. Mutually exclusive with `template_id`. |
| template_id? | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Data Tag Categories |
fn update()
Update Data Tag Categories attributes
fn delete(id: string)
Delete the Data Tag Categories
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| case_sensitive? | boolean | Only 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? | string | The description of the dataset. |
| name | string | |
| encoding_version? | number | Dataset 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? | boolean | Generate 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? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Datasets |
fn update()
Update Datasets attributes
fn delete(id: string)
Delete the Datasets
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| description? | string | |
| match_percent | number | |
| name | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Document Fingerprints |
fn update()
Update Document Fingerprints attributes
fn delete(id: string)
Delete the Document Fingerprints
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| enabled | boolean | |
| description? | string | |
| name | string | |
| pattern | object | |
| profile_id? | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Entries |
fn update()
Update Entries attributes
fn delete(id: string)
Delete the Entries
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| name | string | Instance 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? | object | Scan the context of predefined entries to only return matches surrounded by keywords. |
| entries? | array | |
| ocr_enabled? | boolean | |
| profile_id | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Predefined |
fn update()
Update Predefined attributes
fn delete(id: string)
Delete the Predefined
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| action | object | |
| conditions | array | Triggered if all conditions match. |
| description? | string | |
| enabled | boolean | |
| name | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Rules |
fn update()
Update Rules attributes
fn delete(id: string)
Delete the Rules
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| description? | string | |
| levels? | array | Levels to create with the group. Mutually exclusive with `template_id`. |
| name | string | |
| template_id? | string | |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Sensitivity Groups |
fn update()
Update Sensitivity Groups attributes
fn delete(id: string)
Delete the Sensitivity Groups
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Sensitivity Groups |
fn sync()
Sync Sensitivity Groups state from Cloudflare
Resources
state(infinite)— Sensitivity Groups resource state
04Previous Versions
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