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

cloudflare.DlpPredefinedProfile

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    Deprecated: cloudflare.index/dlppredefinedprofile.DlpPredefinedProfile has been deprecated in favor of cloudflare.index/zerotrustdlppredefinedprofile.ZeroTrustDlpPredefinedProfile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDlpPredefinedProfile = new cloudflare.ZeroTrustDlpPredefinedProfile("example_zero_trust_dlp_predefined_profile", {
        accountId: "account_id",
        profileId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        entries: [{
            id: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            enabled: true,
        }],
        aiContextEnabled: true,
        allowedMatchCount: 0,
        confidenceThreshold: "confidence_threshold",
        contextAwareness: {
            enabled: true,
            skip: {
                files: true,
            },
        },
        ocrEnabled: true,
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_predefined_profile = cloudflare.ZeroTrustDlpPredefinedProfile("example_zero_trust_dlp_predefined_profile",
        account_id="account_id",
        profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        entries=[{
            "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            "enabled": True,
        }],
        ai_context_enabled=True,
        allowed_match_count=0,
        confidence_threshold="confidence_threshold",
        context_awareness={
            "enabled": True,
            "skip": {
                "files": True,
            },
        },
        ocr_enabled=True)
    
    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.NewZeroTrustDlpPredefinedProfile(ctx, "example_zero_trust_dlp_predefined_profile", &cloudflare.ZeroTrustDlpPredefinedProfileArgs{
    			AccountId: pulumi.String("account_id"),
    			ProfileId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
    			Entries: cloudflare.ZeroTrustDlpPredefinedProfileEntryArray{
    				&cloudflare.ZeroTrustDlpPredefinedProfileEntryArgs{
    					Id:      pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
    					Enabled: pulumi.Bool(true),
    				},
    			},
    			AiContextEnabled:    pulumi.Bool(true),
    			AllowedMatchCount:   pulumi.Int(0),
    			ConfidenceThreshold: pulumi.String("confidence_threshold"),
    			ContextAwareness: &cloudflare.ZeroTrustDlpPredefinedProfileContextAwarenessArgs{
    				Enabled: pulumi.Bool(true),
    				Skip: &cloudflare.ZeroTrustDlpPredefinedProfileContextAwarenessSkipArgs{
    					Files: pulumi.Bool(true),
    				},
    			},
    			OcrEnabled: pulumi.Bool(true),
    		})
    		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 exampleZeroTrustDlpPredefinedProfile = new Cloudflare.ZeroTrustDlpPredefinedProfile("example_zero_trust_dlp_predefined_profile", new()
        {
            AccountId = "account_id",
            ProfileId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            Entries = new[]
            {
                new Cloudflare.Inputs.ZeroTrustDlpPredefinedProfileEntryArgs
                {
                    Id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                    Enabled = true,
                },
            },
            AiContextEnabled = true,
            AllowedMatchCount = 0,
            ConfidenceThreshold = "confidence_threshold",
            ContextAwareness = new Cloudflare.Inputs.ZeroTrustDlpPredefinedProfileContextAwarenessArgs
            {
                Enabled = true,
                Skip = new Cloudflare.Inputs.ZeroTrustDlpPredefinedProfileContextAwarenessSkipArgs
                {
                    Files = true,
                },
            },
            OcrEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustDlpPredefinedProfile;
    import com.pulumi.cloudflare.ZeroTrustDlpPredefinedProfileArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustDlpPredefinedProfileEntryArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustDlpPredefinedProfileContextAwarenessArgs;
    import com.pulumi.cloudflare.inputs.ZeroTrustDlpPredefinedProfileContextAwarenessSkipArgs;
    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 exampleZeroTrustDlpPredefinedProfile = new ZeroTrustDlpPredefinedProfile("exampleZeroTrustDlpPredefinedProfile", ZeroTrustDlpPredefinedProfileArgs.builder()
                .accountId("account_id")
                .profileId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .entries(ZeroTrustDlpPredefinedProfileEntryArgs.builder()
                    .id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                    .enabled(true)
                    .build())
                .aiContextEnabled(true)
                .allowedMatchCount(0)
                .confidenceThreshold("confidence_threshold")
                .contextAwareness(ZeroTrustDlpPredefinedProfileContextAwarenessArgs.builder()
                    .enabled(true)
                    .skip(ZeroTrustDlpPredefinedProfileContextAwarenessSkipArgs.builder()
                        .files(true)
                        .build())
                    .build())
                .ocrEnabled(true)
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDlpPredefinedProfile:
        type: cloudflare:ZeroTrustDlpPredefinedProfile
        name: example_zero_trust_dlp_predefined_profile
        properties:
          accountId: account_id
          profileId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
          entries:
            - id: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
              enabled: true
          aiContextEnabled: true
          allowedMatchCount: 0
          confidenceThreshold: confidence_threshold
          contextAwareness:
            enabled: true
            skip:
              files: true
          ocrEnabled: true
    

    Create DlpPredefinedProfile Resource

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

    Constructor syntax

    new DlpPredefinedProfile(name: string, args: DlpPredefinedProfileArgs, opts?: CustomResourceOptions);
    @overload
    def DlpPredefinedProfile(resource_name: str,
                             args: DlpPredefinedProfileArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def DlpPredefinedProfile(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_id: Optional[str] = None,
                             ai_context_enabled: Optional[bool] = None,
                             allowed_match_count: Optional[int] = None,
                             confidence_threshold: Optional[str] = None,
                             context_awareness: Optional[DlpPredefinedProfileContextAwarenessArgs] = None,
                             entries: Optional[Sequence[DlpPredefinedProfileEntryArgs]] = None,
                             ocr_enabled: Optional[bool] = None,
                             profile_id: Optional[str] = None)
    func NewDlpPredefinedProfile(ctx *Context, name string, args DlpPredefinedProfileArgs, opts ...ResourceOption) (*DlpPredefinedProfile, error)
    public DlpPredefinedProfile(string name, DlpPredefinedProfileArgs args, CustomResourceOptions? opts = null)
    public DlpPredefinedProfile(String name, DlpPredefinedProfileArgs args)
    public DlpPredefinedProfile(String name, DlpPredefinedProfileArgs args, CustomResourceOptions options)
    
    type: cloudflare:DlpPredefinedProfile
    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 DlpPredefinedProfileArgs
    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 DlpPredefinedProfileArgs
    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 DlpPredefinedProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DlpPredefinedProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DlpPredefinedProfileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AccountId string
    Entries List<DlpPredefinedProfileEntry>
    ProfileId string
    AiContextEnabled bool
    AllowedMatchCount int
    ConfidenceThreshold string
    ContextAwareness DlpPredefinedProfileContextAwareness
    Scan the context of predefined entries to only return matches surrounded by keywords.
    OcrEnabled bool
    AccountId string
    Entries []DlpPredefinedProfileEntryArgs
    ProfileId string
    AiContextEnabled bool
    AllowedMatchCount int
    ConfidenceThreshold string
    ContextAwareness DlpPredefinedProfileContextAwarenessArgs
    Scan the context of predefined entries to only return matches surrounded by keywords.
    OcrEnabled bool
    accountId String
    entries List<DlpPredefinedProfileEntry>
    profileId String
    aiContextEnabled Boolean
    allowedMatchCount Integer
    confidenceThreshold String
    contextAwareness DlpPredefinedProfileContextAwareness
    Scan the context of predefined entries to only return matches surrounded by keywords.
    ocrEnabled Boolean
    accountId string
    entries DlpPredefinedProfileEntry[]
    profileId string
    aiContextEnabled boolean
    allowedMatchCount number
    confidenceThreshold string
    contextAwareness DlpPredefinedProfileContextAwareness
    Scan the context of predefined entries to only return matches surrounded by keywords.
    ocrEnabled boolean
    accountId String
    entries List<Property Map>
    profileId String
    aiContextEnabled Boolean
    allowedMatchCount Number
    confidenceThreshold String
    contextAwareness Property Map
    Scan the context of predefined entries to only return matches surrounded by keywords.
    ocrEnabled Boolean

    Outputs

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

    CreatedAt string
    When the profile was created
    Description string
    The description of the profile
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the profile
    OpenAccess bool
    Whether this profile can be accessed by anyone
    Type string
    Available values: "custom".
    UpdatedAt string
    When the profile was lasted updated
    CreatedAt string
    When the profile was created
    Description string
    The description of the profile
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the profile
    OpenAccess bool
    Whether this profile can be accessed by anyone
    Type string
    Available values: "custom".
    UpdatedAt string
    When the profile was lasted updated
    createdAt String
    When the profile was created
    description String
    The description of the profile
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the profile
    openAccess Boolean
    Whether this profile can be accessed by anyone
    type String
    Available values: "custom".
    updatedAt String
    When the profile was lasted updated
    createdAt string
    When the profile was created
    description string
    The description of the profile
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the profile
    openAccess boolean
    Whether this profile can be accessed by anyone
    type string
    Available values: "custom".
    updatedAt string
    When the profile was lasted updated
    created_at str
    When the profile was created
    description str
    The description of the profile
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the profile
    open_access bool
    Whether this profile can be accessed by anyone
    type str
    Available values: "custom".
    updated_at str
    When the profile was lasted updated
    createdAt String
    When the profile was created
    description String
    The description of the profile
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the profile
    openAccess Boolean
    Whether this profile can be accessed by anyone
    type String
    Available values: "custom".
    updatedAt String
    When the profile was lasted updated

    Look up Existing DlpPredefinedProfile Resource

    Get an existing DlpPredefinedProfile 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?: DlpPredefinedProfileState, opts?: CustomResourceOptions): DlpPredefinedProfile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            ai_context_enabled: Optional[bool] = None,
            allowed_match_count: Optional[int] = None,
            confidence_threshold: Optional[str] = None,
            context_awareness: Optional[DlpPredefinedProfileContextAwarenessArgs] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            entries: Optional[Sequence[DlpPredefinedProfileEntryArgs]] = None,
            name: Optional[str] = None,
            ocr_enabled: Optional[bool] = None,
            open_access: Optional[bool] = None,
            profile_id: Optional[str] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> DlpPredefinedProfile
    func GetDlpPredefinedProfile(ctx *Context, name string, id IDInput, state *DlpPredefinedProfileState, opts ...ResourceOption) (*DlpPredefinedProfile, error)
    public static DlpPredefinedProfile Get(string name, Input<string> id, DlpPredefinedProfileState? state, CustomResourceOptions? opts = null)
    public static DlpPredefinedProfile get(String name, Output<String> id, DlpPredefinedProfileState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:DlpPredefinedProfile    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
    AiContextEnabled bool
    AllowedMatchCount int
    ConfidenceThreshold string
    ContextAwareness DlpPredefinedProfileContextAwareness
    Scan the context of predefined entries to only return matches surrounded by keywords.
    CreatedAt string
    When the profile was created
    Description string
    The description of the profile
    Entries List<DlpPredefinedProfileEntry>
    Name string
    The name of the profile
    OcrEnabled bool
    OpenAccess bool
    Whether this profile can be accessed by anyone
    ProfileId string
    Type string
    Available values: "custom".
    UpdatedAt string
    When the profile was lasted updated
    AccountId string
    AiContextEnabled bool
    AllowedMatchCount int
    ConfidenceThreshold string
    ContextAwareness DlpPredefinedProfileContextAwarenessArgs
    Scan the context of predefined entries to only return matches surrounded by keywords.
    CreatedAt string
    When the profile was created
    Description string
    The description of the profile
    Entries []DlpPredefinedProfileEntryArgs
    Name string
    The name of the profile
    OcrEnabled bool
    OpenAccess bool
    Whether this profile can be accessed by anyone
    ProfileId string
    Type string
    Available values: "custom".
    UpdatedAt string
    When the profile was lasted updated
    accountId String
    aiContextEnabled Boolean
    allowedMatchCount Integer
    confidenceThreshold String
    contextAwareness DlpPredefinedProfileContextAwareness
    Scan the context of predefined entries to only return matches surrounded by keywords.
    createdAt String
    When the profile was created
    description String
    The description of the profile
    entries List<DlpPredefinedProfileEntry>
    name String
    The name of the profile
    ocrEnabled Boolean
    openAccess Boolean
    Whether this profile can be accessed by anyone
    profileId String
    type String
    Available values: "custom".
    updatedAt String
    When the profile was lasted updated
    accountId string
    aiContextEnabled boolean
    allowedMatchCount number
    confidenceThreshold string
    contextAwareness DlpPredefinedProfileContextAwareness
    Scan the context of predefined entries to only return matches surrounded by keywords.
    createdAt string
    When the profile was created
    description string
    The description of the profile
    entries DlpPredefinedProfileEntry[]
    name string
    The name of the profile
    ocrEnabled boolean
    openAccess boolean
    Whether this profile can be accessed by anyone
    profileId string
    type string
    Available values: "custom".
    updatedAt string
    When the profile was lasted updated
    account_id str
    ai_context_enabled bool
    allowed_match_count int
    confidence_threshold str
    context_awareness DlpPredefinedProfileContextAwarenessArgs
    Scan the context of predefined entries to only return matches surrounded by keywords.
    created_at str
    When the profile was created
    description str
    The description of the profile
    entries Sequence[DlpPredefinedProfileEntryArgs]
    name str
    The name of the profile
    ocr_enabled bool
    open_access bool
    Whether this profile can be accessed by anyone
    profile_id str
    type str
    Available values: "custom".
    updated_at str
    When the profile was lasted updated
    accountId String
    aiContextEnabled Boolean
    allowedMatchCount Number
    confidenceThreshold String
    contextAwareness Property Map
    Scan the context of predefined entries to only return matches surrounded by keywords.
    createdAt String
    When the profile was created
    description String
    The description of the profile
    entries List<Property Map>
    name String
    The name of the profile
    ocrEnabled Boolean
    openAccess Boolean
    Whether this profile can be accessed by anyone
    profileId String
    type String
    Available values: "custom".
    updatedAt String
    When the profile was lasted updated

    Supporting Types

    DlpPredefinedProfileContextAwareness, DlpPredefinedProfileContextAwarenessArgs

    Enabled bool
    If true, scan the context of predefined entries to only return matches surrounded by keywords.
    Skip DlpPredefinedProfileContextAwarenessSkip
    Content types to exclude from context analysis and return all matches.
    Enabled bool
    If true, scan the context of predefined entries to only return matches surrounded by keywords.
    Skip DlpPredefinedProfileContextAwarenessSkip
    Content types to exclude from context analysis and return all matches.
    enabled Boolean
    If true, scan the context of predefined entries to only return matches surrounded by keywords.
    skip DlpPredefinedProfileContextAwarenessSkip
    Content types to exclude from context analysis and return all matches.
    enabled boolean
    If true, scan the context of predefined entries to only return matches surrounded by keywords.
    skip DlpPredefinedProfileContextAwarenessSkip
    Content types to exclude from context analysis and return all matches.
    enabled bool
    If true, scan the context of predefined entries to only return matches surrounded by keywords.
    skip DlpPredefinedProfileContextAwarenessSkip
    Content types to exclude from context analysis and return all matches.
    enabled Boolean
    If true, scan the context of predefined entries to only return matches surrounded by keywords.
    skip Property Map
    Content types to exclude from context analysis and return all matches.

    DlpPredefinedProfileContextAwarenessSkip, DlpPredefinedProfileContextAwarenessSkipArgs

    Files bool
    If the content type is a file, skip context analysis and return all matches.
    Files bool
    If the content type is a file, skip context analysis and return all matches.
    files Boolean
    If the content type is a file, skip context analysis and return all matches.
    files boolean
    If the content type is a file, skip context analysis and return all matches.
    files bool
    If the content type is a file, skip context analysis and return all matches.
    files Boolean
    If the content type is a file, skip context analysis and return all matches.

    DlpPredefinedProfileEntry, DlpPredefinedProfileEntryArgs

    Enabled bool
    Id string
    Enabled bool
    Id string
    enabled Boolean
    id String
    enabled boolean
    id string
    enabled bool
    id str
    enabled Boolean
    id String

    Import

    $ pulumi import cloudflare:index/dlpPredefinedProfile:DlpPredefinedProfile example '<account_id>/<profile_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