Dlp Predefined Profile
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,
});
Content copied to clipboard
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)
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Import
$ pulumi import cloudflare:index/dlpPredefinedProfile:DlpPredefinedProfile example '<account_id>/<profile_id>'
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Scan the context of predefined entries to only return matches surrounded by keywords.
Link copied to clipboard
The description of the profile
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether this profile can be accessed by anyone
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard