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",
aiContextEnabled: true,
allowedMatchCount: 5,
confidenceThreshold: "confidence_threshold",
enabledEntries: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
entries: [{
id: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
enabled: 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",
ai_context_enabled=True,
allowed_match_count=5,
confidence_threshold="confidence_threshold",
enabled_entries=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
entries=[{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"enabled": 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"),
AiContextEnabled: pulumi.Bool(true),
AllowedMatchCount: pulumi.Int(5),
ConfidenceThreshold: pulumi.String("confidence_threshold"),
EnabledEntries: pulumi.StringArray{
pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
},
Entries: cloudflare.ZeroTrustDlpPredefinedProfileEntryArray{
&cloudflare.ZeroTrustDlpPredefinedProfileEntryArgs{
Id: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
Enabled: 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",
AiContextEnabled = true,
AllowedMatchCount = 5,
ConfidenceThreshold = "confidence_threshold",
EnabledEntries = new[]
{
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
},
Entries = new[]
{
new Cloudflare.Inputs.ZeroTrustDlpPredefinedProfileEntryArgs
{
Id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
Enabled = 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 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")
.aiContextEnabled(true)
.allowedMatchCount(5)
.confidenceThreshold("confidence_threshold")
.enabledEntries("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.entries(ZeroTrustDlpPredefinedProfileEntryArgs.builder()
.id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.enabled(true)
.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
aiContextEnabled: true
allowedMatchCount: 5
confidenceThreshold: confidence_threshold
enabledEntries:
- 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
entries:
- id: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
enabled: true
ocrEnabled: true
Create ZeroTrustDlpPredefinedProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustDlpPredefinedProfile(name: string, args: ZeroTrustDlpPredefinedProfileArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustDlpPredefinedProfile(resource_name: str,
args: ZeroTrustDlpPredefinedProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustDlpPredefinedProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
profile_id: Optional[str] = None,
ai_context_enabled: Optional[bool] = None,
allowed_match_count: Optional[int] = None,
confidence_threshold: Optional[str] = None,
enabled_entries: Optional[Sequence[str]] = None,
entries: Optional[Sequence[ZeroTrustDlpPredefinedProfileEntryArgs]] = None,
ocr_enabled: Optional[bool] = None)func NewZeroTrustDlpPredefinedProfile(ctx *Context, name string, args ZeroTrustDlpPredefinedProfileArgs, opts ...ResourceOption) (*ZeroTrustDlpPredefinedProfile, error)public ZeroTrustDlpPredefinedProfile(string name, ZeroTrustDlpPredefinedProfileArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDlpPredefinedProfile(String name, ZeroTrustDlpPredefinedProfileArgs args)
public ZeroTrustDlpPredefinedProfile(String name, ZeroTrustDlpPredefinedProfileArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDlpPredefinedProfile
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 ZeroTrustDlpPredefinedProfileArgs
- 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 ZeroTrustDlpPredefinedProfileArgs
- 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 ZeroTrustDlpPredefinedProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustDlpPredefinedProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustDlpPredefinedProfileArgs
- 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 zeroTrustDlpPredefinedProfileResource = new Cloudflare.ZeroTrustDlpPredefinedProfile("zeroTrustDlpPredefinedProfileResource", new()
{
AccountId = "string",
ProfileId = "string",
AiContextEnabled = false,
AllowedMatchCount = 0,
ConfidenceThreshold = "string",
EnabledEntries = new[]
{
"string",
},
OcrEnabled = false,
});
example, err := cloudflare.NewZeroTrustDlpPredefinedProfile(ctx, "zeroTrustDlpPredefinedProfileResource", &cloudflare.ZeroTrustDlpPredefinedProfileArgs{
AccountId: pulumi.String("string"),
ProfileId: pulumi.String("string"),
AiContextEnabled: pulumi.Bool(false),
AllowedMatchCount: pulumi.Int(0),
ConfidenceThreshold: pulumi.String("string"),
EnabledEntries: pulumi.StringArray{
pulumi.String("string"),
},
OcrEnabled: pulumi.Bool(false),
})
var zeroTrustDlpPredefinedProfileResource = new ZeroTrustDlpPredefinedProfile("zeroTrustDlpPredefinedProfileResource", ZeroTrustDlpPredefinedProfileArgs.builder()
.accountId("string")
.profileId("string")
.aiContextEnabled(false)
.allowedMatchCount(0)
.confidenceThreshold("string")
.enabledEntries("string")
.ocrEnabled(false)
.build());
zero_trust_dlp_predefined_profile_resource = cloudflare.ZeroTrustDlpPredefinedProfile("zeroTrustDlpPredefinedProfileResource",
account_id="string",
profile_id="string",
ai_context_enabled=False,
allowed_match_count=0,
confidence_threshold="string",
enabled_entries=["string"],
ocr_enabled=False)
const zeroTrustDlpPredefinedProfileResource = new cloudflare.ZeroTrustDlpPredefinedProfile("zeroTrustDlpPredefinedProfileResource", {
accountId: "string",
profileId: "string",
aiContextEnabled: false,
allowedMatchCount: 0,
confidenceThreshold: "string",
enabledEntries: ["string"],
ocrEnabled: false,
});
type: cloudflare:ZeroTrustDlpPredefinedProfile
properties:
accountId: string
aiContextEnabled: false
allowedMatchCount: 0
confidenceThreshold: string
enabledEntries:
- string
ocrEnabled: false
profileId: string
ZeroTrustDlpPredefinedProfile 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 ZeroTrustDlpPredefinedProfile resource accepts the following input properties:
- Account
Id string - Profile
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Enabled
Entries List<string> - Entries
List<Zero
Trust Dlp Predefined Profile Entry> - Ocr
Enabled bool
- Account
Id string - Profile
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Enabled
Entries []string - Entries
[]Zero
Trust Dlp Predefined Profile Entry Args - Ocr
Enabled bool
- account
Id String - profile
Id String - ai
Context BooleanEnabled - allowed
Match IntegerCount - confidence
Threshold String - enabled
Entries List<String> - entries
List<Zero
Trust Dlp Predefined Profile Entry> - ocr
Enabled Boolean
- account
Id string - profile
Id string - ai
Context booleanEnabled - allowed
Match numberCount - confidence
Threshold string - enabled
Entries string[] - entries
Zero
Trust Dlp Predefined Profile Entry[] - ocr
Enabled boolean
- account_
id str - profile_
id str - ai_
context_ boolenabled - allowed_
match_ intcount - confidence_
threshold str - enabled_
entries Sequence[str] - entries
Sequence[Zero
Trust Dlp Predefined Profile Entry Args] - ocr_
enabled bool
- account
Id String - profile
Id String - ai
Context BooleanEnabled - allowed
Match NumberCount - confidence
Threshold String - enabled
Entries List<String> - entries List<Property Map>
- ocr
Enabled Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustDlpPredefinedProfile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the predefined profile.
- Open
Access bool - Whether this profile can be accessed by anyone.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the predefined profile.
- Open
Access bool - Whether this profile can be accessed by anyone.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the predefined profile.
- open
Access Boolean - Whether this profile can be accessed by anyone.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the predefined profile.
- open
Access boolean - Whether this profile can be accessed by anyone.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the predefined profile.
- open_
access bool - Whether this profile can be accessed by anyone.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the predefined profile.
- open
Access Boolean - Whether this profile can be accessed by anyone.
Look up Existing ZeroTrustDlpPredefinedProfile Resource
Get an existing ZeroTrustDlpPredefinedProfile 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?: ZeroTrustDlpPredefinedProfileState, opts?: CustomResourceOptions): ZeroTrustDlpPredefinedProfile@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,
enabled_entries: Optional[Sequence[str]] = None,
entries: Optional[Sequence[ZeroTrustDlpPredefinedProfileEntryArgs]] = None,
name: Optional[str] = None,
ocr_enabled: Optional[bool] = None,
open_access: Optional[bool] = None,
profile_id: Optional[str] = None) -> ZeroTrustDlpPredefinedProfilefunc GetZeroTrustDlpPredefinedProfile(ctx *Context, name string, id IDInput, state *ZeroTrustDlpPredefinedProfileState, opts ...ResourceOption) (*ZeroTrustDlpPredefinedProfile, error)public static ZeroTrustDlpPredefinedProfile Get(string name, Input<string> id, ZeroTrustDlpPredefinedProfileState? state, CustomResourceOptions? opts = null)public static ZeroTrustDlpPredefinedProfile get(String name, Output<String> id, ZeroTrustDlpPredefinedProfileState state, CustomResourceOptions options)resources: _: type: cloudflare:ZeroTrustDlpPredefinedProfile 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 - Enabled
Entries List<string> - Entries
List<Zero
Trust Dlp Predefined Profile Entry> - Name string
- The name of the predefined profile.
- Ocr
Enabled bool - Open
Access bool - Whether this profile can be accessed by anyone.
- Profile
Id string
- Account
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Enabled
Entries []string - Entries
[]Zero
Trust Dlp Predefined Profile Entry Args - Name string
- The name of the predefined profile.
- Ocr
Enabled bool - Open
Access bool - Whether this profile can be accessed by anyone.
- Profile
Id string
- account
Id String - ai
Context BooleanEnabled - allowed
Match IntegerCount - confidence
Threshold String - enabled
Entries List<String> - entries
List<Zero
Trust Dlp Predefined Profile Entry> - name String
- The name of the predefined profile.
- ocr
Enabled Boolean - open
Access Boolean - Whether this profile can be accessed by anyone.
- profile
Id String
- account
Id string - ai
Context booleanEnabled - allowed
Match numberCount - confidence
Threshold string - enabled
Entries string[] - entries
Zero
Trust Dlp Predefined Profile Entry[] - name string
- The name of the predefined profile.
- ocr
Enabled boolean - open
Access boolean - Whether this profile can be accessed by anyone.
- profile
Id string
- account_
id str - ai_
context_ boolenabled - allowed_
match_ intcount - confidence_
threshold str - enabled_
entries Sequence[str] - entries
Sequence[Zero
Trust Dlp Predefined Profile Entry Args] - name str
- The name of the predefined profile.
- ocr_
enabled bool - open_
access bool - Whether this profile can be accessed by anyone.
- profile_
id str
- account
Id String - ai
Context BooleanEnabled - allowed
Match NumberCount - confidence
Threshold String - enabled
Entries List<String> - entries List<Property Map>
- name String
- The name of the predefined profile.
- ocr
Enabled Boolean - open
Access Boolean - Whether this profile can be accessed by anyone.
- profile
Id String
Supporting Types
ZeroTrustDlpPredefinedProfileEntry, ZeroTrustDlpPredefinedProfileEntryArgs
Import
$ pulumi import cloudflare:index/zeroTrustDlpPredefinedProfile:ZeroTrustDlpPredefinedProfile 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
cloudflareTerraform Provider.
