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

cloudflare.DlpPredefinedProfile

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. DlpPredefinedProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DlpPredefinedProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DlpPredefinedProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 This property is required. string
Entries This property is required. List<DlpPredefinedProfileEntry>
ProfileId This property is required. 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 This property is required. string
Entries This property is required. []DlpPredefinedProfileEntryArgs
ProfileId This property is required. 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 This property is required. String
entries This property is required. List<DlpPredefinedProfileEntry>
profileId This property is required. 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 This property is required. string
entries This property is required. DlpPredefinedProfileEntry[]
profileId This property is required. string
aiContextEnabled boolean
allowedMatchCount number
confidenceThreshold string
contextAwareness DlpPredefinedProfileContextAwareness
Scan the context of predefined entries to only return matches surrounded by keywords.
ocrEnabled boolean
account_id This property is required. str
entries This property is required. Sequence[DlpPredefinedProfileEntryArgs]
profile_id This property is required. 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.
ocr_enabled bool
accountId This property is required. String
entries This property is required. List<Property Map>
profileId This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required. bool
If true, scan the context of predefined entries to only return matches surrounded by keywords.
Skip This property is required. DlpPredefinedProfileContextAwarenessSkip
Content types to exclude from context analysis and return all matches.
Enabled This property is required. bool
If true, scan the context of predefined entries to only return matches surrounded by keywords.
Skip This property is required. DlpPredefinedProfileContextAwarenessSkip
Content types to exclude from context analysis and return all matches.
enabled This property is required. Boolean
If true, scan the context of predefined entries to only return matches surrounded by keywords.
skip This property is required. DlpPredefinedProfileContextAwarenessSkip
Content types to exclude from context analysis and return all matches.
enabled This property is required. boolean
If true, scan the context of predefined entries to only return matches surrounded by keywords.
skip This property is required. DlpPredefinedProfileContextAwarenessSkip
Content types to exclude from context analysis and return all matches.
enabled This property is required. bool
If true, scan the context of predefined entries to only return matches surrounded by keywords.
skip This property is required. DlpPredefinedProfileContextAwarenessSkip
Content types to exclude from context analysis and return all matches.
enabled This property is required. Boolean
If true, scan the context of predefined entries to only return matches surrounded by keywords.
skip This property is required. Property Map
Content types to exclude from context analysis and return all matches.

DlpPredefinedProfileContextAwarenessSkip
, DlpPredefinedProfileContextAwarenessSkipArgs

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

DlpPredefinedProfileEntry
, DlpPredefinedProfileEntryArgs

Enabled This property is required. bool
Id This property is required. string
Enabled This property is required. bool
Id This property is required. string
enabled This property is required. Boolean
id This property is required. String
enabled This property is required. boolean
id This property is required. string
enabled This property is required. bool
id This property is required. str
enabled This property is required. Boolean
id This property is required. String

Import

$ pulumi import cloudflare:index/dlpPredefinedProfile:DlpPredefinedProfile example '<account_id>/<profile_id>'
Copy

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.