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", {
profileId: "e91a2360-da51-4fdf-9711-bcdecd462614",
accountId: "account_id",
ocrEnabled: true,
enabledEntries: [
"56a8c060-01bb-4f89-ba1e-3ad42770a342",
"7f575e6d-039a-465e-85cf-175bda88d4f2",
"03ebabfd-ce7e-45ed-8061-65e28f0a6e53",
"2d9c356d-b5a3-482a-b01e-0363e0de7458",
"2f3657af-c39b-4899-9a98-22f7d187dd28",
"753a16f9-f533-4208-a5b8-6319b201e9fb",
"ebcea2c4-335a-457c-853b-f7ae7cc74e07",
"3f5c4c83-f34c-4d17-81c7-3028385737b3",
"d1a84fde-c375-4d3c-8a27-8c4eaa33cf60",
"6dbe5604-d3a3-4c3e-905c-57985704bea7",
"55ba2c6c-8ef4-4b2e-9148-e75e8b6ccac1",
"5b1d5035-8c53-4bc9-a151-404eb32b34b4",
"acf28d88-2daf-4bc4-aa36-5ac1fac0540a",
],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_dlp_predefined_profile = cloudflare.ZeroTrustDlpPredefinedProfile("example_zero_trust_dlp_predefined_profile",
profile_id="e91a2360-da51-4fdf-9711-bcdecd462614",
account_id="account_id",
ocr_enabled=True,
enabled_entries=[
"56a8c060-01bb-4f89-ba1e-3ad42770a342",
"7f575e6d-039a-465e-85cf-175bda88d4f2",
"03ebabfd-ce7e-45ed-8061-65e28f0a6e53",
"2d9c356d-b5a3-482a-b01e-0363e0de7458",
"2f3657af-c39b-4899-9a98-22f7d187dd28",
"753a16f9-f533-4208-a5b8-6319b201e9fb",
"ebcea2c4-335a-457c-853b-f7ae7cc74e07",
"3f5c4c83-f34c-4d17-81c7-3028385737b3",
"d1a84fde-c375-4d3c-8a27-8c4eaa33cf60",
"6dbe5604-d3a3-4c3e-905c-57985704bea7",
"55ba2c6c-8ef4-4b2e-9148-e75e8b6ccac1",
"5b1d5035-8c53-4bc9-a151-404eb32b34b4",
"acf28d88-2daf-4bc4-aa36-5ac1fac0540a",
])
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{
ProfileId: pulumi.String("e91a2360-da51-4fdf-9711-bcdecd462614"),
AccountId: pulumi.String("account_id"),
OcrEnabled: pulumi.Bool(true),
EnabledEntries: pulumi.StringArray{
pulumi.String("56a8c060-01bb-4f89-ba1e-3ad42770a342"),
pulumi.String("7f575e6d-039a-465e-85cf-175bda88d4f2"),
pulumi.String("03ebabfd-ce7e-45ed-8061-65e28f0a6e53"),
pulumi.String("2d9c356d-b5a3-482a-b01e-0363e0de7458"),
pulumi.String("2f3657af-c39b-4899-9a98-22f7d187dd28"),
pulumi.String("753a16f9-f533-4208-a5b8-6319b201e9fb"),
pulumi.String("ebcea2c4-335a-457c-853b-f7ae7cc74e07"),
pulumi.String("3f5c4c83-f34c-4d17-81c7-3028385737b3"),
pulumi.String("d1a84fde-c375-4d3c-8a27-8c4eaa33cf60"),
pulumi.String("6dbe5604-d3a3-4c3e-905c-57985704bea7"),
pulumi.String("55ba2c6c-8ef4-4b2e-9148-e75e8b6ccac1"),
pulumi.String("5b1d5035-8c53-4bc9-a151-404eb32b34b4"),
pulumi.String("acf28d88-2daf-4bc4-aa36-5ac1fac0540a"),
},
})
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()
{
ProfileId = "e91a2360-da51-4fdf-9711-bcdecd462614",
AccountId = "account_id",
OcrEnabled = true,
EnabledEntries = new[]
{
"56a8c060-01bb-4f89-ba1e-3ad42770a342",
"7f575e6d-039a-465e-85cf-175bda88d4f2",
"03ebabfd-ce7e-45ed-8061-65e28f0a6e53",
"2d9c356d-b5a3-482a-b01e-0363e0de7458",
"2f3657af-c39b-4899-9a98-22f7d187dd28",
"753a16f9-f533-4208-a5b8-6319b201e9fb",
"ebcea2c4-335a-457c-853b-f7ae7cc74e07",
"3f5c4c83-f34c-4d17-81c7-3028385737b3",
"d1a84fde-c375-4d3c-8a27-8c4eaa33cf60",
"6dbe5604-d3a3-4c3e-905c-57985704bea7",
"55ba2c6c-8ef4-4b2e-9148-e75e8b6ccac1",
"5b1d5035-8c53-4bc9-a151-404eb32b34b4",
"acf28d88-2daf-4bc4-aa36-5ac1fac0540a",
},
});
});
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 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()
.profileId("e91a2360-da51-4fdf-9711-bcdecd462614")
.accountId("account_id")
.ocrEnabled(true)
.enabledEntries(
"56a8c060-01bb-4f89-ba1e-3ad42770a342",
"7f575e6d-039a-465e-85cf-175bda88d4f2",
"03ebabfd-ce7e-45ed-8061-65e28f0a6e53",
"2d9c356d-b5a3-482a-b01e-0363e0de7458",
"2f3657af-c39b-4899-9a98-22f7d187dd28",
"753a16f9-f533-4208-a5b8-6319b201e9fb",
"ebcea2c4-335a-457c-853b-f7ae7cc74e07",
"3f5c4c83-f34c-4d17-81c7-3028385737b3",
"d1a84fde-c375-4d3c-8a27-8c4eaa33cf60",
"6dbe5604-d3a3-4c3e-905c-57985704bea7",
"55ba2c6c-8ef4-4b2e-9148-e75e8b6ccac1",
"5b1d5035-8c53-4bc9-a151-404eb32b34b4",
"acf28d88-2daf-4bc4-aa36-5ac1fac0540a")
.build());
}
}
resources:
exampleZeroTrustDlpPredefinedProfile:
type: cloudflare:ZeroTrustDlpPredefinedProfile
name: example_zero_trust_dlp_predefined_profile
properties:
profileId: e91a2360-da51-4fdf-9711-bcdecd462614
accountId: account_id
ocrEnabled: true # Entries in this predefined profile we want to enable. Any entries not included will be disabled
enabledEntries:
- 56a8c060-01bb-4f89-ba1e-3ad42770a342
- 7f575e6d-039a-465e-85cf-175bda88d4f2
- 03ebabfd-ce7e-45ed-8061-65e28f0a6e53
- 2d9c356d-b5a3-482a-b01e-0363e0de7458
- 2f3657af-c39b-4899-9a98-22f7d187dd28
- 753a16f9-f533-4208-a5b8-6319b201e9fb
- ebcea2c4-335a-457c-853b-f7ae7cc74e07
- 3f5c4c83-f34c-4d17-81c7-3028385737b3
- d1a84fde-c375-4d3c-8a27-8c4eaa33cf60
- 6dbe5604-d3a3-4c3e-905c-57985704bea7
- 55ba2c6c-8ef4-4b2e-9148-e75e8b6ccac1
- 5b1d5035-8c53-4bc9-a151-404eb32b34b4
- acf28d88-2daf-4bc4-aa36-5ac1fac0540a
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,
enabled_entries: Optional[Sequence[str]] = 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 - Profile
Id string - Ai
Context boolEnabled - Allowed
Match intCount - Confidence
Threshold string - Enabled
Entries List<string> - Entries
List<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
[]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<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
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[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 DlpPredefinedProfile 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 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,
enabled_entries: Optional[Sequence[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) -> DlpPredefinedProfilefunc 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 - Enabled
Entries List<string> - Entries
List<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
[]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<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
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[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
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
cloudflareTerraform Provider.
