1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. ZeroTrustDlpSensitivityLevel
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Accepted Permissions

    • Zero Trust Read
    • Zero Trust Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDlpSensitivityLevel = new cloudflare.ZeroTrustDlpSensitivityLevel("example_zero_trust_dlp_sensitivity_level", {
        accountId: "account_id",
        sensitivityGroupId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        name: "name",
        description: "description",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_dlp_sensitivity_level = cloudflare.ZeroTrustDlpSensitivityLevel("example_zero_trust_dlp_sensitivity_level",
        account_id="account_id",
        sensitivity_group_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        name="name",
        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.NewZeroTrustDlpSensitivityLevel(ctx, "example_zero_trust_dlp_sensitivity_level", &cloudflare.ZeroTrustDlpSensitivityLevelArgs{
    			AccountId:          pulumi.String("account_id"),
    			SensitivityGroupId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
    			Name:               pulumi.String("name"),
    			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 exampleZeroTrustDlpSensitivityLevel = new Cloudflare.ZeroTrustDlpSensitivityLevel("example_zero_trust_dlp_sensitivity_level", new()
        {
            AccountId = "account_id",
            SensitivityGroupId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            Name = "name",
            Description = "description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustDlpSensitivityLevel;
    import com.pulumi.cloudflare.ZeroTrustDlpSensitivityLevelArgs;
    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 exampleZeroTrustDlpSensitivityLevel = new ZeroTrustDlpSensitivityLevel("exampleZeroTrustDlpSensitivityLevel", ZeroTrustDlpSensitivityLevelArgs.builder()
                .accountId("account_id")
                .sensitivityGroupId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .name("name")
                .description("description")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustDlpSensitivityLevel:
        type: cloudflare:ZeroTrustDlpSensitivityLevel
        name: example_zero_trust_dlp_sensitivity_level
        properties:
          accountId: account_id
          sensitivityGroupId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
          name: name
          description: description
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    resource "cloudflare_zerotrustdlpsensitivitylevel" "example_zero_trust_dlp_sensitivity_level" {
      account_id           = "account_id"
      sensitivity_group_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
      name                 = "name"
      description          = "description"
    }
    

    Create ZeroTrustDlpSensitivityLevel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ZeroTrustDlpSensitivityLevel(name: string, args: ZeroTrustDlpSensitivityLevelArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustDlpSensitivityLevel(resource_name: str,
                                     args: ZeroTrustDlpSensitivityLevelArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustDlpSensitivityLevel(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     account_id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     sensitivity_group_id: Optional[str] = None,
                                     description: Optional[str] = None)
    func NewZeroTrustDlpSensitivityLevel(ctx *Context, name string, args ZeroTrustDlpSensitivityLevelArgs, opts ...ResourceOption) (*ZeroTrustDlpSensitivityLevel, error)
    public ZeroTrustDlpSensitivityLevel(string name, ZeroTrustDlpSensitivityLevelArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustDlpSensitivityLevel(String name, ZeroTrustDlpSensitivityLevelArgs args)
    public ZeroTrustDlpSensitivityLevel(String name, ZeroTrustDlpSensitivityLevelArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustDlpSensitivityLevel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_zero_trust_dlp_sensitivity_level" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ZeroTrustDlpSensitivityLevelArgs
    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 ZeroTrustDlpSensitivityLevelArgs
    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 ZeroTrustDlpSensitivityLevelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustDlpSensitivityLevelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustDlpSensitivityLevelArgs
    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 zeroTrustDlpSensitivityLevelResource = new Cloudflare.ZeroTrustDlpSensitivityLevel("zeroTrustDlpSensitivityLevelResource", new()
    {
        AccountId = "string",
        Name = "string",
        SensitivityGroupId = "string",
        Description = "string",
    });
    
    example, err := cloudflare.NewZeroTrustDlpSensitivityLevel(ctx, "zeroTrustDlpSensitivityLevelResource", &cloudflare.ZeroTrustDlpSensitivityLevelArgs{
    	AccountId:          pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	SensitivityGroupId: pulumi.String("string"),
    	Description:        pulumi.String("string"),
    })
    
    resource "cloudflare_zero_trust_dlp_sensitivity_level" "zeroTrustDlpSensitivityLevelResource" {
      lifecycle {
        create_before_destroy = true
      }
      account_id           = "string"
      name                 = "string"
      sensitivity_group_id = "string"
      description          = "string"
    }
    
    var zeroTrustDlpSensitivityLevelResource = new ZeroTrustDlpSensitivityLevel("zeroTrustDlpSensitivityLevelResource", ZeroTrustDlpSensitivityLevelArgs.builder()
        .accountId("string")
        .name("string")
        .sensitivityGroupId("string")
        .description("string")
        .build());
    
    zero_trust_dlp_sensitivity_level_resource = cloudflare.ZeroTrustDlpSensitivityLevel("zeroTrustDlpSensitivityLevelResource",
        account_id="string",
        name="string",
        sensitivity_group_id="string",
        description="string")
    
    const zeroTrustDlpSensitivityLevelResource = new cloudflare.ZeroTrustDlpSensitivityLevel("zeroTrustDlpSensitivityLevelResource", {
        accountId: "string",
        name: "string",
        sensitivityGroupId: "string",
        description: "string",
    });
    
    type: cloudflare:ZeroTrustDlpSensitivityLevel
    properties:
        accountId: string
        description: string
        name: string
        sensitivityGroupId: string
    

    ZeroTrustDlpSensitivityLevel 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 ZeroTrustDlpSensitivityLevel resource accepts the following input properties:

    AccountId string
    Name string
    SensitivityGroupId string
    Description string
    AccountId string
    Name string
    SensitivityGroupId string
    Description string
    accountId String
    name String
    sensitivityGroupId String
    description String
    accountId string
    name string
    sensitivityGroupId string
    description string
    accountId String
    name String
    sensitivityGroupId String
    description String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ZeroTrustDlpSensitivityLevel resource produces the following output properties:

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    created_at string
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String

    Look up Existing ZeroTrustDlpSensitivityLevel Resource

    Get an existing ZeroTrustDlpSensitivityLevel 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?: ZeroTrustDlpSensitivityLevelState, opts?: CustomResourceOptions): ZeroTrustDlpSensitivityLevel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            sensitivity_group_id: Optional[str] = None,
            updated_at: Optional[str] = None) -> ZeroTrustDlpSensitivityLevel
    func GetZeroTrustDlpSensitivityLevel(ctx *Context, name string, id IDInput, state *ZeroTrustDlpSensitivityLevelState, opts ...ResourceOption) (*ZeroTrustDlpSensitivityLevel, error)
    public static ZeroTrustDlpSensitivityLevel Get(string name, Input<string> id, ZeroTrustDlpSensitivityLevelState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustDlpSensitivityLevel get(String name, Output<String> id, ZeroTrustDlpSensitivityLevelState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustDlpSensitivityLevel    get:      id: ${id}
    import {
      to = cloudflare_zero_trust_dlp_sensitivity_level.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.
    The following state arguments are supported:
    AccountId string
    CreatedAt string
    Description string
    Name string
    SensitivityGroupId string
    UpdatedAt string
    AccountId string
    CreatedAt string
    Description string
    Name string
    SensitivityGroupId string
    UpdatedAt string
    accountId String
    createdAt String
    description String
    name String
    sensitivityGroupId String
    updatedAt String
    accountId string
    createdAt string
    description string
    name string
    sensitivityGroupId string
    updatedAt string
    accountId String
    createdAt String
    description String
    name String
    sensitivityGroupId String
    updatedAt String

    Import

    $ pulumi import cloudflare:index/zeroTrustDlpSensitivityLevel:ZeroTrustDlpSensitivityLevel example '<account_id>/<sensitivity_group_id>/<sensitivity_level_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.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial