Skip to main content

Cloudflare/email

@swamp/cloudflare/emailv2026.07.24.1· 8d agoMODELS
01README

Cloudflare email infrastructure models

02Release Notes
  • Updated: suppression
03Models5
@swamp/cloudflare/email/addressesv2026.07.21.1addresses.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
status?enumDestination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.
emailstringThe contact email address of the user.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
fn create()
Create a Addresses
fn get(id: string)
Get a Addresses
ArgumentTypeDescription
idstringThe ID of the Addresses
fn lookup()
Look up an existing Addresses by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Addresses by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Addresses to import
fn update(identifier?: string)
Update Addresses attributes
ArgumentTypeDescription
identifier?stringTarget a specific Addresses by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Addresses
ArgumentTypeDescription
idstringThe ID of the Addresses
fn sync(identifier?: string)
Sync Addresses state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Addresses by id (e.g. one discovered by list)

Resources

state(infinite)— Addresses resource state
@swamp/cloudflare/email/rulesv2026.07.21.1rules.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
actionsarrayList actions patterns.
enabled?booleanRouting rule status.
matchersarrayMatching patterns to forward to your actions.
name?stringRouting rule name.
owner_worker_tag?stringPublic tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n
priority?numberPriority of the routing rule.
source?enumWho manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n
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 lookup()
Look up an existing Rules by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Rules by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Rules to import
fn update(identifier?: string)
Update Rules attributes
ArgumentTypeDescription
identifier?stringTarget a specific Rules by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Rules
ArgumentTypeDescription
idstringThe ID of the Rules
fn sync(identifier?: string)
Sync Rules state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Rules by id (e.g. one discovered by list)

Resources

state(infinite)— Rules resource state
@swamp/cloudflare/email/subdomainsv2026.07.21.1subdomains.ts

Global Arguments

ArgumentTypeDescription
zone_idstringCloudflare zone ID
preview_enabled?booleanWhether sent messages from this subdomain can be previewed in the activity log.
namestringThe subdomain name. Must be within the zone.
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 Subdomains
fn get(id: string)
Get a Subdomains
ArgumentTypeDescription
idstringThe ID of the Subdomains
fn lookup()
Look up an existing Subdomains by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Subdomains by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Subdomains to import
fn update(identifier?: string)
Update Subdomains attributes
ArgumentTypeDescription
identifier?stringTarget a specific Subdomains by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Subdomains
ArgumentTypeDescription
idstringThe ID of the Subdomains
fn sync(identifier?: string)
Sync Subdomains state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Subdomains by id (e.g. one discovered by list)

Resources

state(infinite)— Subdomains resource state
@swamp/cloudflare/email/suppressionv2026.07.24.1suppression.ts

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
emailstring
expires_at?string
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
fn create()
Create a Suppression
fn get(id: string)
Get a Suppression
ArgumentTypeDescription
idstringThe ID of the Suppression
fn lookup()
Look up an existing Suppression by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Suppression by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Suppression to import
fn delete(id: string)
Delete the Suppression
ArgumentTypeDescription
idstringThe ID of the Suppression
fn sync(identifier?: string)
Sync Suppression state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Suppression by id (e.g. one discovered by list)

Resources

state(infinite)— Suppression resource state
@swamp/cloudflare/email/suppressionsv2026.07.21.1suppressions.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
emailstring
expires_at?string
note?string
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
fn create()
Create a Suppressions
fn get(id: string)
Get a Suppressions
ArgumentTypeDescription
idstringThe ID of the Suppressions
fn lookup()
Look up an existing Suppressions by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Suppressions by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Suppressions to import
fn delete(id: string)
Delete the Suppressions
ArgumentTypeDescription
idstringThe ID of the Suppressions
fn sync(identifier?: string)
Sync Suppressions state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Suppressions by id (e.g. one discovered by list)

Resources

state(infinite)— Suppressions resource state
04Previous Versions7
2026.07.21.1
  • Updated: addresses
  • Updated: rules
  • Updated: suppression
  • Updated: subdomains
  • Updated: suppressions
2026.07.18.2

Modified 5 models

2026.07.14.1
  • Updated: rules
  • Updated: subdomains
  • Added: suppressions

Added 1, modified 1 models

2026.06.24.1
  • Updated: addresses

Modified 1 models

2026.06.08.2
  • Updated: addresses
  • Updated: rules
  • Updated: suppression
  • Updated: subdomains
2026.05.29.1
  • Updated: addresses
  • Updated: rules
  • Updated: suppression
  • Updated: subdomains
2026.05.22.1
  • Added: addresses
  • Added: rules
  • Added: suppression
  • Added: subdomains
05Stats
A
100 / 100
Downloads
1
Archive size
21.8 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