DlpEntry
Source:
src/Cloudflare/Dlp/Entry.ts
A Cloudflare Zero Trust DLP custom entry — a standalone regular- expression detection that can be attached to a custom DLP profile. Use it when entries are managed independently of the {@link DlpProfile} that groups them.
Requires the Cloudflare DLP entitlement (a paid Zero Trust add-on);
accounts without it receive the typed Forbidden error on all writes.
Creating a DLP entry
Section titled “Creating a DLP entry”Attach a regex entry to a profile
const entry = yield* Cloudflare.DlpEntry("EmployeeId", { pattern: { regex: "EMP-[0-9]{6}" }, profileId: profile.profileId,});Luhn-validated card entry
const card = yield* Cloudflare.DlpEntry("CardNumber", { pattern: { regex: "[0-9]{13,16}", validation: "luhn" }, profileId: profile.profileId,});