published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
Zero Trust ReadZero Trust Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustDlpDataClass = new cloudflare.ZeroTrustDlpDataClass("example_zero_trust_dlp_data_class", {
accountId: "account_id",
dataTags: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
expression: "expression",
name: "name",
sensitivityLevels: [{
groupId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
levelId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
}],
description: "description",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_dlp_data_class = cloudflare.ZeroTrustDlpDataClass("example_zero_trust_dlp_data_class",
account_id="account_id",
data_tags=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
expression="expression",
name="name",
sensitivity_levels=[{
"group_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"level_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
}],
description="description")
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.NewZeroTrustDlpDataClass(ctx, "example_zero_trust_dlp_data_class", &cloudflare.ZeroTrustDlpDataClassArgs{
AccountId: pulumi.String("account_id"),
DataTags: pulumi.StringArray{
pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
},
Expression: pulumi.String("expression"),
Name: pulumi.String("name"),
SensitivityLevels: cloudflare.ZeroTrustDlpDataClassSensitivityLevelArray{
&cloudflare.ZeroTrustDlpDataClassSensitivityLevelArgs{
GroupId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
LevelId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
},
},
Description: pulumi.String("description"),
})
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 exampleZeroTrustDlpDataClass = new Cloudflare.ZeroTrustDlpDataClass("example_zero_trust_dlp_data_class", new()
{
AccountId = "account_id",
DataTags = new[]
{
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
},
Expression = "expression",
Name = "name",
SensitivityLevels = new[]
{
new Cloudflare.Inputs.ZeroTrustDlpDataClassSensitivityLevelArgs
{
GroupId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
LevelId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
},
},
Description = "description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustDlpDataClass;
import com.pulumi.cloudflare.ZeroTrustDlpDataClassArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDlpDataClassSensitivityLevelArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleZeroTrustDlpDataClass = new ZeroTrustDlpDataClass("exampleZeroTrustDlpDataClass", ZeroTrustDlpDataClassArgs.builder()
.accountId("account_id")
.dataTags("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.expression("expression")
.name("name")
.sensitivityLevels(ZeroTrustDlpDataClassSensitivityLevelArgs.builder()
.groupId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.levelId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.build())
.description("description")
.build());
}
}
resources:
exampleZeroTrustDlpDataClass:
type: cloudflare:ZeroTrustDlpDataClass
name: example_zero_trust_dlp_data_class
properties:
accountId: account_id
dataTags:
- 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
expression: expression
name: name
sensitivityLevels:
- groupId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
levelId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
description: description
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_zerotrustdlpdataclass" "example_zero_trust_dlp_data_class" {
account_id = "account_id"
data_tags = ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]
expression = "expression"
name = "name"
sensitivity_levels {
group_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
level_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
description = "description"
}
Create ZeroTrustDlpDataClass Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustDlpDataClass(name: string, args: ZeroTrustDlpDataClassArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustDlpDataClass(resource_name: str,
args: ZeroTrustDlpDataClassArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustDlpDataClass(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
data_tags: Optional[Sequence[str]] = None,
expression: Optional[str] = None,
name: Optional[str] = None,
sensitivity_levels: Optional[Sequence[ZeroTrustDlpDataClassSensitivityLevelArgs]] = None,
description: Optional[str] = None)func NewZeroTrustDlpDataClass(ctx *Context, name string, args ZeroTrustDlpDataClassArgs, opts ...ResourceOption) (*ZeroTrustDlpDataClass, error)public ZeroTrustDlpDataClass(string name, ZeroTrustDlpDataClassArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDlpDataClass(String name, ZeroTrustDlpDataClassArgs args)
public ZeroTrustDlpDataClass(String name, ZeroTrustDlpDataClassArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDlpDataClass
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_zero_trust_dlp_data_class" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ZeroTrustDlpDataClassArgs
- 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 ZeroTrustDlpDataClassArgs
- 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 ZeroTrustDlpDataClassArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustDlpDataClassArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustDlpDataClassArgs
- 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 zeroTrustDlpDataClassResource = new Cloudflare.ZeroTrustDlpDataClass("zeroTrustDlpDataClassResource", new()
{
AccountId = "string",
DataTags = new[]
{
"string",
},
Expression = "string",
Name = "string",
SensitivityLevels = new[]
{
new Cloudflare.Inputs.ZeroTrustDlpDataClassSensitivityLevelArgs
{
GroupId = "string",
LevelId = "string",
},
},
Description = "string",
});
example, err := cloudflare.NewZeroTrustDlpDataClass(ctx, "zeroTrustDlpDataClassResource", &cloudflare.ZeroTrustDlpDataClassArgs{
AccountId: pulumi.String("string"),
DataTags: pulumi.StringArray{
pulumi.String("string"),
},
Expression: pulumi.String("string"),
Name: pulumi.String("string"),
SensitivityLevels: cloudflare.ZeroTrustDlpDataClassSensitivityLevelArray{
&cloudflare.ZeroTrustDlpDataClassSensitivityLevelArgs{
GroupId: pulumi.String("string"),
LevelId: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
})
resource "cloudflare_zero_trust_dlp_data_class" "zeroTrustDlpDataClassResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
data_tags = ["string"]
expression = "string"
name = "string"
sensitivity_levels {
group_id = "string"
level_id = "string"
}
description = "string"
}
var zeroTrustDlpDataClassResource = new ZeroTrustDlpDataClass("zeroTrustDlpDataClassResource", ZeroTrustDlpDataClassArgs.builder()
.accountId("string")
.dataTags("string")
.expression("string")
.name("string")
.sensitivityLevels(ZeroTrustDlpDataClassSensitivityLevelArgs.builder()
.groupId("string")
.levelId("string")
.build())
.description("string")
.build());
zero_trust_dlp_data_class_resource = cloudflare.ZeroTrustDlpDataClass("zeroTrustDlpDataClassResource",
account_id="string",
data_tags=["string"],
expression="string",
name="string",
sensitivity_levels=[{
"group_id": "string",
"level_id": "string",
}],
description="string")
const zeroTrustDlpDataClassResource = new cloudflare.ZeroTrustDlpDataClass("zeroTrustDlpDataClassResource", {
accountId: "string",
dataTags: ["string"],
expression: "string",
name: "string",
sensitivityLevels: [{
groupId: "string",
levelId: "string",
}],
description: "string",
});
type: cloudflare:ZeroTrustDlpDataClass
properties:
accountId: string
dataTags:
- string
description: string
expression: string
name: string
sensitivityLevels:
- groupId: string
levelId: string
ZeroTrustDlpDataClass 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 ZeroTrustDlpDataClass resource accepts the following input properties:
- Account
Id string - List<string>
- Expression string
- Name string
- Sensitivity
Levels List<ZeroTrust Dlp Data Class Sensitivity Level> - Description string
- Account
Id string - []string
- Expression string
- Name string
- Sensitivity
Levels []ZeroTrust Dlp Data Class Sensitivity Level Args - Description string
- account_
id string - list(string)
- expression string
- name string
- sensitivity_
levels list(object) - description string
- account
Id String - List<String>
- expression String
- name String
- sensitivity
Levels List<ZeroTrust Dlp Data Class Sensitivity Level> - description String
- account
Id string - string[]
- expression string
- name string
- sensitivity
Levels ZeroTrust Dlp Data Class Sensitivity Level[] - description string
- account_
id str - Sequence[str]
- expression str
- name str
- sensitivity_
levels Sequence[ZeroTrust Dlp Data Class Sensitivity Level Args] - description str
- account
Id String - List<String>
- expression String
- name String
- sensitivity
Levels List<Property Map> - description String
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustDlpDataClass resource produces the following output properties:
- created_
at string - id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str
Look up Existing ZeroTrustDlpDataClass Resource
Get an existing ZeroTrustDlpDataClass 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?: ZeroTrustDlpDataClassState, opts?: CustomResourceOptions): ZeroTrustDlpDataClass@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_at: Optional[str] = None,
data_tags: Optional[Sequence[str]] = None,
description: Optional[str] = None,
expression: Optional[str] = None,
name: Optional[str] = None,
sensitivity_levels: Optional[Sequence[ZeroTrustDlpDataClassSensitivityLevelArgs]] = None,
updated_at: Optional[str] = None) -> ZeroTrustDlpDataClassfunc GetZeroTrustDlpDataClass(ctx *Context, name string, id IDInput, state *ZeroTrustDlpDataClassState, opts ...ResourceOption) (*ZeroTrustDlpDataClass, error)public static ZeroTrustDlpDataClass Get(string name, Input<string> id, ZeroTrustDlpDataClassState? state, CustomResourceOptions? opts = null)public static ZeroTrustDlpDataClass get(String name, Output<String> id, ZeroTrustDlpDataClassState state, CustomResourceOptions options)resources: _: type: cloudflare:ZeroTrustDlpDataClass get: id: ${id}import {
to = cloudflare_zero_trust_dlp_data_class.example
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 - Created
At string - List<string>
- Description string
- Expression string
- Name string
- Sensitivity
Levels List<ZeroTrust Dlp Data Class Sensitivity Level> - Updated
At string
- Account
Id string - Created
At string - []string
- Description string
- Expression string
- Name string
- Sensitivity
Levels []ZeroTrust Dlp Data Class Sensitivity Level Args - Updated
At string
- account_
id string - created_
at string - list(string)
- description string
- expression string
- name string
- sensitivity_
levels list(object) - updated_
at string
- account
Id String - created
At String - List<String>
- description String
- expression String
- name String
- sensitivity
Levels List<ZeroTrust Dlp Data Class Sensitivity Level> - updated
At String
- account
Id string - created
At string - string[]
- description string
- expression string
- name string
- sensitivity
Levels ZeroTrust Dlp Data Class Sensitivity Level[] - updated
At string
- account_
id str - created_
at str - Sequence[str]
- description str
- expression str
- name str
- sensitivity_
levels Sequence[ZeroTrust Dlp Data Class Sensitivity Level Args] - updated_
at str
- account
Id String - created
At String - List<String>
- description String
- expression String
- name String
- sensitivity
Levels List<Property Map> - updated
At String
Supporting Types
ZeroTrustDlpDataClassSensitivityLevel, ZeroTrustDlpDataClassSensitivityLevelArgs
Import
$ pulumi import cloudflare:index/zeroTrustDlpDataClass:ZeroTrustDlpDataClass example '<account_id>/<data_class_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.
published on Thursday, Jul 16, 2026 by Pulumi