1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDlpEntry
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.ZeroTrustDlpEntry

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDlpEntry = new cloudflare.ZeroTrustDlpEntry("example_zero_trust_dlp_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_entry = cloudflare.ZeroTrustDlpEntry("example_zero_trust_dlp_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.NewZeroTrustDlpEntry(ctx, "example_zero_trust_dlp_entry", &cloudflare.ZeroTrustDlpEntryArgs{
    			AccountId: pulumi.String("account_id"),
    			Enabled:   pulumi.Bool(true),
    			Name:      pulumi.String("name"),
    			Pattern: &cloudflare.ZeroTrustDlpEntryPatternArgs{
    				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 exampleZeroTrustDlpEntry = new Cloudflare.ZeroTrustDlpEntry("example_zero_trust_dlp_entry", new()
        {
            AccountId = "account_id",
            Enabled = true,
            Name = "name",
            Pattern = new Cloudflare.Inputs.ZeroTrustDlpEntryPatternArgs
            {
                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.ZeroTrustDlpEntry;
    import com.pulumi.cloudflare.ZeroTrustDlpEntryArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustDlpEntryPatternArgs;
    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 exampleZeroTrustDlpEntry = new ZeroTrustDlpEntry("exampleZeroTrustDlpEntry", ZeroTrustDlpEntryArgs.builder()
                .accountId("account_id")
                .enabled(true)
                .name("name")
                .pattern(ZeroTrustDlpEntryPatternArgs.builder()
                    .regex("regex")
                    .validation("luhn")
                    .build())
                .profileId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDlpEntry:
        type: cloudflare:ZeroTrustDlpEntry
        name: example_zero_trust_dlp_entry
        properties:
          accountId: account_id
          enabled: true
          name: name
          pattern:
            regex: regex
            validation: luhn
          profileId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
    

    Create ZeroTrustDlpEntry Resource

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

    Constructor syntax

    new ZeroTrustDlpEntry(name: string, args: ZeroTrustDlpEntryArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustDlpEntry(resource_name: str,
                          args: ZeroTrustDlpEntryArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustDlpEntry(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          account_id: Optional[str] = None,
                          enabled: Optional[bool] = None,
                          name: Optional[str] = None,
                          pattern: Optional[ZeroTrustDlpEntryPatternArgs] = None,
                          profile_id: Optional[str] = None,
                          type: Optional[str] = None)
    func NewZeroTrustDlpEntry(ctx *Context, name string, args ZeroTrustDlpEntryArgs, opts ...ResourceOption) (*ZeroTrustDlpEntry, error)
    public ZeroTrustDlpEntry(string name, ZeroTrustDlpEntryArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustDlpEntry(String name, ZeroTrustDlpEntryArgs args)
    public ZeroTrustDlpEntry(String name, ZeroTrustDlpEntryArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustDlpEntry
    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 ZeroTrustDlpEntryArgs
    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 ZeroTrustDlpEntryArgs
    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 ZeroTrustDlpEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustDlpEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustDlpEntryArgs
    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 zeroTrustDlpEntryResource = new Cloudflare.ZeroTrustDlpEntry("zeroTrustDlpEntryResource", new()
    {
        AccountId = "string",
        Enabled = false,
        Name = "string",
        Pattern = new Cloudflare.Inputs.ZeroTrustDlpEntryPatternArgs
        {
            Regex = "string",
        },
        ProfileId = "string",
        Type = "string",
    });
    
    example, err := cloudflare.NewZeroTrustDlpEntry(ctx, "zeroTrustDlpEntryResource", &cloudflare.ZeroTrustDlpEntryArgs{
    	AccountId: pulumi.String("string"),
    	Enabled:   pulumi.Bool(false),
    	Name:      pulumi.String("string"),
    	Pattern: &cloudflare.ZeroTrustDlpEntryPatternArgs{
    		Regex: pulumi.String("string"),
    	},
    	ProfileId: pulumi.String("string"),
    	Type:      pulumi.String("string"),
    })
    
    var zeroTrustDlpEntryResource = new ZeroTrustDlpEntry("zeroTrustDlpEntryResource", ZeroTrustDlpEntryArgs.builder()
        .accountId("string")
        .enabled(false)
        .name("string")
        .pattern(ZeroTrustDlpEntryPatternArgs.builder()
            .regex("string")
            .build())
        .profileId("string")
        .type("string")
        .build());
    
    zero_trust_dlp_entry_resource = cloudflare.ZeroTrustDlpEntry("zeroTrustDlpEntryResource",
        account_id="string",
        enabled=False,
        name="string",
        pattern={
            "regex": "string",
        },
        profile_id="string",
        type="string")
    
    const zeroTrustDlpEntryResource = new cloudflare.ZeroTrustDlpEntry("zeroTrustDlpEntryResource", {
        accountId: "string",
        enabled: false,
        name: "string",
        pattern: {
            regex: "string",
        },
        profileId: "string",
        type: "string",
    });
    
    type: cloudflare:ZeroTrustDlpEntry
    properties:
        accountId: string
        enabled: false
        name: string
        pattern:
            regex: string
        profileId: string
        type: string
    

    ZeroTrustDlpEntry 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 ZeroTrustDlpEntry resource accepts the following input properties:

    AccountId string
    Enabled bool
    Name string
    Pattern ZeroTrustDlpEntryPattern
    ProfileId string
    Type string
    Available values: "custom".
    AccountId string
    Enabled bool
    Name string
    Pattern ZeroTrustDlpEntryPatternArgs
    ProfileId string
    Type string
    Available values: "custom".
    accountId String
    enabled Boolean
    name String
    pattern ZeroTrustDlpEntryPattern
    profileId String
    type String
    Available values: "custom".
    accountId string
    enabled boolean
    name string
    pattern ZeroTrustDlpEntryPattern
    profileId string
    type string
    Available values: "custom".
    account_id str
    enabled bool
    name str
    pattern ZeroTrustDlpEntryPatternArgs
    profile_id str
    type str
    Available values: "custom".
    accountId String
    enabled Boolean
    name String
    pattern Property Map
    profileId String
    type String
    Available values: "custom".

    Outputs

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

    Confidence ZeroTrustDlpEntryConfidence
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secret bool
    UpdatedAt string
    WordList string
    Confidence ZeroTrustDlpEntryConfidence
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Secret bool
    UpdatedAt string
    WordList string
    confidence ZeroTrustDlpEntryConfidence
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    secret Boolean
    updatedAt String
    wordList String
    confidence ZeroTrustDlpEntryConfidence
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    secret boolean
    updatedAt string
    wordList string
    confidence ZeroTrustDlpEntryConfidence
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    secret bool
    updated_at str
    word_list str
    confidence Property Map
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    secret Boolean
    updatedAt String
    wordList String

    Look up Existing ZeroTrustDlpEntry Resource

    Get an existing ZeroTrustDlpEntry 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?: ZeroTrustDlpEntryState, opts?: CustomResourceOptions): ZeroTrustDlpEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            confidence: Optional[ZeroTrustDlpEntryConfidenceArgs] = None,
            created_at: Optional[str] = None,
            enabled: Optional[bool] = None,
            name: Optional[str] = None,
            pattern: Optional[ZeroTrustDlpEntryPatternArgs] = None,
            profile_id: Optional[str] = None,
            secret: Optional[bool] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None,
            word_list: Optional[str] = None) -> ZeroTrustDlpEntry
    func GetZeroTrustDlpEntry(ctx *Context, name string, id IDInput, state *ZeroTrustDlpEntryState, opts ...ResourceOption) (*ZeroTrustDlpEntry, error)
    public static ZeroTrustDlpEntry Get(string name, Input<string> id, ZeroTrustDlpEntryState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustDlpEntry get(String name, Output<String> id, ZeroTrustDlpEntryState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustDlpEntry    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
    confidence ZeroTrustDlpEntryConfidence
    createdAt String
    enabled Boolean
    name String
    pattern ZeroTrustDlpEntryPattern
    profileId String
    secret Boolean
    type String
    Available values: "custom".
    updatedAt String
    wordList String
    accountId string
    confidence ZeroTrustDlpEntryConfidence
    createdAt string
    enabled boolean
    name string
    pattern ZeroTrustDlpEntryPattern
    profileId string
    secret boolean
    type string
    Available values: "custom".
    updatedAt string
    wordList string
    accountId String
    confidence Property Map
    createdAt String
    enabled Boolean
    name String
    pattern Property Map
    profileId String
    secret Boolean
    type String
    Available values: "custom".
    updatedAt String
    wordList String

    Supporting Types

    ZeroTrustDlpEntryConfidence, ZeroTrustDlpEntryConfidenceArgs

    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

    ZeroTrustDlpEntryPattern, ZeroTrustDlpEntryPatternArgs

    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.

    Import

    $ pulumi import cloudflare:index/zeroTrustDlpEntry:ZeroTrustDlpEntry 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.1.2 published on Monday, Apr 28, 2025 by Pulumi