cloudflare.DlpPredefinedProfile
Explore with Pulumi AI
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:
- Account
Id string - Entries
List<Dlp
Predefined Profile Entry> - Profile
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Context
Awareness DlpPredefined Profile Context Awareness - Scan the context of predefined entries to only return matches surrounded by keywords.
- Ocr
Enabled bool
- Account
Id string - Entries
[]Dlp
Predefined Profile Entry Args - Profile
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Context
Awareness DlpPredefined Profile Context Awareness Args - Scan the context of predefined entries to only return matches surrounded by keywords.
- Ocr
Enabled bool
- account
Id String - entries
List<Dlp
Predefined Profile Entry> - profile
Id String - ai
Context BooleanEnabled - allowed
Match IntegerCount - confidence
Threshold String - context
Awareness DlpPredefined Profile Context Awareness - Scan the context of predefined entries to only return matches surrounded by keywords.
- ocr
Enabled Boolean
- account
Id string - entries
Dlp
Predefined Profile Entry[] - profile
Id string - ai
Context booleanEnabled - allowed
Match numberCount - confidence
Threshold string - context
Awareness DlpPredefined Profile Context Awareness - Scan the context of predefined entries to only return matches surrounded by keywords.
- ocr
Enabled boolean
- account_
id str - entries
Sequence[Dlp
Predefined Profile Entry Args] - profile_
id str - ai_
context_ boolenabled - allowed_
match_ intcount - confidence_
threshold str - context_
awareness DlpPredefined Profile Context Awareness Args - Scan the context of predefined entries to only return matches surrounded by keywords.
- ocr_
enabled bool
- account
Id String - entries List<Property Map>
- profile
Id String - ai
Context BooleanEnabled - allowed
Match NumberCount - confidence
Threshold String - context
Awareness Property Map - Scan the context of predefined entries to only return matches surrounded by keywords.
- ocr
Enabled Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the DlpPredefinedProfile resource produces the following output properties:
- Created
At 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
- Open
Access bool - Whether this profile can be accessed by anyone
- Type string
- Available values: "custom".
- Updated
At string - When the profile was lasted updated
- Created
At 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
- Open
Access bool - Whether this profile can be accessed by anyone
- Type string
- Available values: "custom".
- Updated
At string - When the profile was lasted updated
- created
At 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
- open
Access Boolean - Whether this profile can be accessed by anyone
- type String
- Available values: "custom".
- updated
At String - When the profile was lasted updated
- created
At 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
- open
Access boolean - Whether this profile can be accessed by anyone
- type string
- Available values: "custom".
- updated
At 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
- created
At 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
- open
Access Boolean - Whether this profile can be accessed by anyone
- type String
- Available values: "custom".
- updated
At 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.
- Account
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Context
Awareness DlpPredefined Profile Context Awareness - Scan the context of predefined entries to only return matches surrounded by keywords.
- Created
At string - When the profile was created
- Description string
- The description of the profile
- Entries
List<Dlp
Predefined Profile Entry> - Name string
- The name of the profile
- Ocr
Enabled bool - Open
Access bool - Whether this profile can be accessed by anyone
- Profile
Id string - Type string
- Available values: "custom".
- Updated
At string - When the profile was lasted updated
- Account
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Context
Awareness DlpPredefined Profile Context Awareness Args - Scan the context of predefined entries to only return matches surrounded by keywords.
- Created
At string - When the profile was created
- Description string
- The description of the profile
- Entries
[]Dlp
Predefined Profile Entry Args - Name string
- The name of the profile
- Ocr
Enabled bool - Open
Access bool - Whether this profile can be accessed by anyone
- Profile
Id string - Type string
- Available values: "custom".
- Updated
At string - When the profile was lasted updated
- account
Id String - ai
Context BooleanEnabled - allowed
Match IntegerCount - confidence
Threshold String - context
Awareness DlpPredefined Profile Context Awareness - Scan the context of predefined entries to only return matches surrounded by keywords.
- created
At String - When the profile was created
- description String
- The description of the profile
- entries
List<Dlp
Predefined Profile Entry> - name String
- The name of the profile
- ocr
Enabled Boolean - open
Access Boolean - Whether this profile can be accessed by anyone
- profile
Id String - type String
- Available values: "custom".
- updated
At String - When the profile was lasted updated
- account
Id string - ai
Context booleanEnabled - allowed
Match numberCount - confidence
Threshold string - context
Awareness DlpPredefined Profile Context Awareness - Scan the context of predefined entries to only return matches surrounded by keywords.
- created
At string - When the profile was created
- description string
- The description of the profile
- entries
Dlp
Predefined Profile Entry[] - name string
- The name of the profile
- ocr
Enabled boolean - open
Access boolean - Whether this profile can be accessed by anyone
- profile
Id string - type string
- Available values: "custom".
- updated
At string - When the profile was lasted updated
- account_
id str - ai_
context_ boolenabled - allowed_
match_ intcount - confidence_
threshold str - context_
awareness DlpPredefined Profile Context Awareness Args - 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[Dlp
Predefined Profile Entry Args] - 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
- account
Id String - ai
Context BooleanEnabled - allowed
Match NumberCount - confidence
Threshold String - context
Awareness Property Map - Scan the context of predefined entries to only return matches surrounded by keywords.
- created
At String - When the profile was created
- description String
- The description of the profile
- entries List<Property Map>
- name String
- The name of the profile
- ocr
Enabled Boolean - open
Access Boolean - Whether this profile can be accessed by anyone
- profile
Id String - type String
- Available values: "custom".
- updated
At 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
Dlp
Predefined Profile Context Awareness Skip - 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
Dlp
Predefined Profile Context Awareness Skip - 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
Dlp
Predefined Profile Context Awareness Skip - 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
Dlp
Predefined Profile Context Awareness Skip - 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
Dlp
Predefined Profile Context Awareness Skip - 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
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.