1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDlpCustomEntry
Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi

cloudflare.ZeroTrustDlpCustomEntry

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDlpCustomEntry = new cloudflare.ZeroTrustDlpCustomEntry("example_zero_trust_dlp_custom_entry", {
        accountId: "account_id",
        enabled: true,
        name: "name",
        pattern: {
            regex: "regex",
            validation: "luhn",
        },
        profileId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_custom_entry = cloudflare.ZeroTrustDlpCustomEntry("example_zero_trust_dlp_custom_entry",
        account_id="account_id",
        enabled=True,
        name="name",
        pattern={
            "regex": "regex",
            "validation": "luhn",
        },
        profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewZeroTrustDlpCustomEntry(ctx, "example_zero_trust_dlp_custom_entry", &cloudflare.ZeroTrustDlpCustomEntryArgs{
    			AccountId: pulumi.String("account_id"),
    			Enabled:   pulumi.Bool(true),
    			Name:      pulumi.String("name"),
    			Pattern: &cloudflare.ZeroTrustDlpCustomEntryPatternArgs{
    				Regex:      pulumi.String("regex"),
    				Validation: pulumi.String("luhn"),
    			},
    			ProfileId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustDlpCustomEntry = new Cloudflare.ZeroTrustDlpCustomEntry("example_zero_trust_dlp_custom_entry", new()
        {
            AccountId = "account_id",
            Enabled = true,
            Name = "name",
            Pattern = new Cloudflare.Inputs.ZeroTrustDlpCustomEntryPatternArgs
            {
                Regex = "regex",
                Validation = "luhn",
            },
            ProfileId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustDlpCustomEntry;
    import com.pulumi.cloudflare.ZeroTrustDlpCustomEntryArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustDlpCustomEntryPatternArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleZeroTrustDlpCustomEntry = new ZeroTrustDlpCustomEntry("exampleZeroTrustDlpCustomEntry", ZeroTrustDlpCustomEntryArgs.builder()
                .accountId("account_id")
                .enabled(true)
                .name("name")
                .pattern(ZeroTrustDlpCustomEntryPatternArgs.builder()
                    .regex("regex")
                    .validation("luhn")
                    .build())
                .profileId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDlpCustomEntry:
        type: cloudflare:ZeroTrustDlpCustomEntry
        name: example_zero_trust_dlp_custom_entry
        properties:
          accountId: account_id
          enabled: true
          name: name
          pattern:
            regex: regex
            validation: luhn
          profileId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
    

    Create ZeroTrustDlpCustomEntry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ZeroTrustDlpCustomEntry(name: string, args: ZeroTrustDlpCustomEntryArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustDlpCustomEntry(resource_name: str,
                                args: ZeroTrustDlpCustomEntryArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustDlpCustomEntry(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                account_id: Optional[str] = None,
                                enabled: Optional[bool] = None,
                                name: Optional[str] = None,
                                pattern: Optional[ZeroTrustDlpCustomEntryPatternArgs] = None,
                                profile_id: Optional[str] = None)
    func NewZeroTrustDlpCustomEntry(ctx *Context, name string, args ZeroTrustDlpCustomEntryArgs, opts ...ResourceOption) (*ZeroTrustDlpCustomEntry, error)
    public ZeroTrustDlpCustomEntry(string name, ZeroTrustDlpCustomEntryArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustDlpCustomEntry(String name, ZeroTrustDlpCustomEntryArgs args)
    public ZeroTrustDlpCustomEntry(String name, ZeroTrustDlpCustomEntryArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustDlpCustomEntry
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ZeroTrustDlpCustomEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ZeroTrustDlpCustomEntryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ZeroTrustDlpCustomEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustDlpCustomEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustDlpCustomEntryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var zeroTrustDlpCustomEntryResource = new Cloudflare.ZeroTrustDlpCustomEntry("zeroTrustDlpCustomEntryResource", new()
    {
        AccountId = "string",
        Enabled = false,
        Name = "string",
        Pattern = new Cloudflare.Inputs.ZeroTrustDlpCustomEntryPatternArgs
        {
            Regex = "string",
        },
        ProfileId = "string",
    });
    
    example, err := cloudflare.NewZeroTrustDlpCustomEntry(ctx, "zeroTrustDlpCustomEntryResource", &cloudflare.ZeroTrustDlpCustomEntryArgs{
    	AccountId: pulumi.String("string"),
    	Enabled:   pulumi.Bool(false),
    	Name:      pulumi.String("string"),
    	Pattern: &cloudflare.ZeroTrustDlpCustomEntryPatternArgs{
    		Regex: pulumi.String("string"),
    	},
    	ProfileId: pulumi.String("string"),
    })
    
    var zeroTrustDlpCustomEntryResource = new ZeroTrustDlpCustomEntry("zeroTrustDlpCustomEntryResource", ZeroTrustDlpCustomEntryArgs.builder()
        .accountId("string")
        .enabled(false)
        .name("string")
        .pattern(ZeroTrustDlpCustomEntryPatternArgs.builder()
            .regex("string")
            .build())
        .profileId("string")
        .build());
    
    zero_trust_dlp_custom_entry_resource = cloudflare.ZeroTrustDlpCustomEntry("zeroTrustDlpCustomEntryResource",
        account_id="string",
        enabled=False,
        name="string",
        pattern={
            "regex": "string",
        },
        profile_id="string")
    
    const zeroTrustDlpCustomEntryResource = new cloudflare.ZeroTrustDlpCustomEntry("zeroTrustDlpCustomEntryResource", {
        accountId: "string",
        enabled: false,
        name: "string",
        pattern: {
            regex: "string",
        },
        profileId: "string",
    });
    
    type: cloudflare:ZeroTrustDlpCustomEntry
    properties:
        accountId: string
        enabled: false
        name: string
        pattern:
            regex: string
        profileId: string
    

    ZeroTrustDlpCustomEntry Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ZeroTrustDlpCustomEntry resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ZeroTrustDlpCustomEntry resource produces the following output properties:

    CaseSensitive bool
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    Confidence ZeroTrustDlpCustomEntryConfidence
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secret bool
    Type string
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    UpdatedAt string
    Variant ZeroTrustDlpCustomEntryVariant
    WordList string
    CaseSensitive bool
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    Confidence ZeroTrustDlpCustomEntryConfidence
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secret bool
    Type string
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    UpdatedAt string
    Variant ZeroTrustDlpCustomEntryVariant
    WordList string
    caseSensitive Boolean
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence ZeroTrustDlpCustomEntryConfidence
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    secret Boolean
    type String
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updatedAt String
    variant ZeroTrustDlpCustomEntryVariant
    wordList String
    caseSensitive boolean
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence ZeroTrustDlpCustomEntryConfidence
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    secret boolean
    type string
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updatedAt string
    variant ZeroTrustDlpCustomEntryVariant
    wordList string
    case_sensitive bool
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence ZeroTrustDlpCustomEntryConfidence
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    secret bool
    type str
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updated_at str
    variant ZeroTrustDlpCustomEntryVariant
    word_list str
    caseSensitive Boolean
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence Property Map
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    secret Boolean
    type String
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updatedAt String
    variant Property Map
    wordList String

    Look up Existing ZeroTrustDlpCustomEntry Resource

    Get an existing ZeroTrustDlpCustomEntry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ZeroTrustDlpCustomEntryState, opts?: CustomResourceOptions): ZeroTrustDlpCustomEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            case_sensitive: Optional[bool] = None,
            confidence: Optional[ZeroTrustDlpCustomEntryConfidenceArgs] = None,
            created_at: Optional[str] = None,
            enabled: Optional[bool] = None,
            name: Optional[str] = None,
            pattern: Optional[ZeroTrustDlpCustomEntryPatternArgs] = None,
            profile_id: Optional[str] = None,
            secret: Optional[bool] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None,
            variant: Optional[ZeroTrustDlpCustomEntryVariantArgs] = None,
            word_list: Optional[str] = None) -> ZeroTrustDlpCustomEntry
    func GetZeroTrustDlpCustomEntry(ctx *Context, name string, id IDInput, state *ZeroTrustDlpCustomEntryState, opts ...ResourceOption) (*ZeroTrustDlpCustomEntry, error)
    public static ZeroTrustDlpCustomEntry Get(string name, Input<string> id, ZeroTrustDlpCustomEntryState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustDlpCustomEntry get(String name, Output<String> id, ZeroTrustDlpCustomEntryState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustDlpCustomEntry    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    CaseSensitive bool
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    Confidence ZeroTrustDlpCustomEntryConfidence
    CreatedAt string
    Enabled bool
    Name string
    Pattern ZeroTrustDlpCustomEntryPattern
    ProfileId string
    Secret bool
    Type string
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    UpdatedAt string
    Variant ZeroTrustDlpCustomEntryVariant
    WordList string
    AccountId string
    CaseSensitive bool
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    Confidence ZeroTrustDlpCustomEntryConfidenceArgs
    CreatedAt string
    Enabled bool
    Name string
    Pattern ZeroTrustDlpCustomEntryPatternArgs
    ProfileId string
    Secret bool
    Type string
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    UpdatedAt string
    Variant ZeroTrustDlpCustomEntryVariantArgs
    WordList string
    accountId String
    caseSensitive Boolean
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence ZeroTrustDlpCustomEntryConfidence
    createdAt String
    enabled Boolean
    name String
    pattern ZeroTrustDlpCustomEntryPattern
    profileId String
    secret Boolean
    type String
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updatedAt String
    variant ZeroTrustDlpCustomEntryVariant
    wordList String
    accountId string
    caseSensitive boolean
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence ZeroTrustDlpCustomEntryConfidence
    createdAt string
    enabled boolean
    name string
    pattern ZeroTrustDlpCustomEntryPattern
    profileId string
    secret boolean
    type string
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updatedAt string
    variant ZeroTrustDlpCustomEntryVariant
    wordList string
    account_id str
    case_sensitive bool
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence ZeroTrustDlpCustomEntryConfidenceArgs
    created_at str
    enabled bool
    name str
    pattern ZeroTrustDlpCustomEntryPatternArgs
    profile_id str
    secret bool
    type str
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updated_at str
    variant ZeroTrustDlpCustomEntryVariantArgs
    word_list str
    accountId String
    caseSensitive Boolean
    Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true
    confidence Property Map
    createdAt String
    enabled Boolean
    name String
    pattern Property Map
    profileId String
    secret Boolean
    type String
    Available values: "custom", "predefined", "integration", "exactdata", "documentfingerprint", "word_list".
    updatedAt String
    variant Property Map
    wordList String

    Supporting Types

    ZeroTrustDlpCustomEntryConfidence, ZeroTrustDlpCustomEntryConfidenceArgs

    AiContextAvailable bool
    Indicates whether this entry has AI remote service validation.
    Available bool
    Indicates whether this entry has any form of validation that is not an AI remote service.
    AiContextAvailable bool
    Indicates whether this entry has AI remote service validation.
    Available bool
    Indicates whether this entry has any form of validation that is not an AI remote service.
    aiContextAvailable Boolean
    Indicates whether this entry has AI remote service validation.
    available Boolean
    Indicates whether this entry has any form of validation that is not an AI remote service.
    aiContextAvailable boolean
    Indicates whether this entry has AI remote service validation.
    available boolean
    Indicates whether this entry has any form of validation that is not an AI remote service.
    ai_context_available bool
    Indicates whether this entry has AI remote service validation.
    available bool
    Indicates whether this entry has any form of validation that is not an AI remote service.
    aiContextAvailable Boolean
    Indicates whether this entry has AI remote service validation.
    available Boolean
    Indicates whether this entry has any form of validation that is not an AI remote service.

    ZeroTrustDlpCustomEntryPattern, ZeroTrustDlpCustomEntryPatternArgs

    Regex string
    Validation string
    Available values: "luhn".

    Deprecated: This attribute is deprecated.

    Regex string
    Validation string
    Available values: "luhn".

    Deprecated: This attribute is deprecated.

    regex String
    validation String
    Available values: "luhn".

    Deprecated: This attribute is deprecated.

    regex string
    validation string
    Available values: "luhn".

    Deprecated: This attribute is deprecated.

    regex str
    validation str
    Available values: "luhn".

    Deprecated: This attribute is deprecated.

    regex String
    validation String
    Available values: "luhn".

    Deprecated: This attribute is deprecated.

    ZeroTrustDlpCustomEntryVariant, ZeroTrustDlpCustomEntryVariantArgs

    Description string
    TopicType string
    Available values: "Intent", "Content".
    Type string
    Available values: "PromptTopic".
    Description string
    TopicType string
    Available values: "Intent", "Content".
    Type string
    Available values: "PromptTopic".
    description String
    topicType String
    Available values: "Intent", "Content".
    type String
    Available values: "PromptTopic".
    description string
    topicType string
    Available values: "Intent", "Content".
    type string
    Available values: "PromptTopic".
    description str
    topic_type str
    Available values: "Intent", "Content".
    type str
    Available values: "PromptTopic".
    description String
    topicType String
    Available values: "Intent", "Content".
    type String
    Available values: "PromptTopic".

    Import

    $ pulumi import cloudflare:index/zeroTrustDlpCustomEntry:ZeroTrustDlpCustomEntry example '<account_id>/<entry_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.8.0 published on Saturday, Aug 30, 2025 by Pulumi