1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDlpDataset
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.ZeroTrustDlpDataset

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustDlpDataset = new cloudflare.ZeroTrustDlpDataset("example_zero_trust_dlp_dataset", {
    accountId: "account_id",
    name: "name",
    description: "description",
    encodingVersion: 0,
    secret: true,
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_dlp_dataset = cloudflare.ZeroTrustDlpDataset("example_zero_trust_dlp_dataset",
    account_id="account_id",
    name="name",
    description="description",
    encoding_version=0,
    secret=True)
Copy
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.NewZeroTrustDlpDataset(ctx, "example_zero_trust_dlp_dataset", &cloudflare.ZeroTrustDlpDatasetArgs{
			AccountId:       pulumi.String("account_id"),
			Name:            pulumi.String("name"),
			Description:     pulumi.String("description"),
			EncodingVersion: pulumi.Int(0),
			Secret:          pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleZeroTrustDlpDataset = new Cloudflare.ZeroTrustDlpDataset("example_zero_trust_dlp_dataset", new()
    {
        AccountId = "account_id",
        Name = "name",
        Description = "description",
        EncodingVersion = 0,
        Secret = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustDlpDataset;
import com.pulumi.cloudflare.ZeroTrustDlpDatasetArgs;
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 exampleZeroTrustDlpDataset = new ZeroTrustDlpDataset("exampleZeroTrustDlpDataset", ZeroTrustDlpDatasetArgs.builder()
            .accountId("account_id")
            .name("name")
            .description("description")
            .encodingVersion(0)
            .secret(true)
            .build());

    }
}
Copy
resources:
  exampleZeroTrustDlpDataset:
    type: cloudflare:ZeroTrustDlpDataset
    name: example_zero_trust_dlp_dataset
    properties:
      accountId: account_id
      name: name
      description: description
      encodingVersion: 0
      secret: true
Copy

Create ZeroTrustDlpDataset Resource

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

Constructor syntax

new ZeroTrustDlpDataset(name: string, args: ZeroTrustDlpDatasetArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustDlpDataset(resource_name: str,
                        args: ZeroTrustDlpDatasetArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def ZeroTrustDlpDataset(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        account_id: Optional[str] = None,
                        name: Optional[str] = None,
                        dataset_id: Optional[str] = None,
                        description: Optional[str] = None,
                        encoding_version: Optional[int] = None,
                        secret: Optional[bool] = None)
func NewZeroTrustDlpDataset(ctx *Context, name string, args ZeroTrustDlpDatasetArgs, opts ...ResourceOption) (*ZeroTrustDlpDataset, error)
public ZeroTrustDlpDataset(string name, ZeroTrustDlpDatasetArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDlpDataset(String name, ZeroTrustDlpDatasetArgs args)
public ZeroTrustDlpDataset(String name, ZeroTrustDlpDatasetArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDlpDataset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustDlpDatasetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ZeroTrustDlpDatasetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustDlpDatasetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustDlpDatasetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ZeroTrustDlpDatasetArgs
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 zeroTrustDlpDatasetResource = new Cloudflare.ZeroTrustDlpDataset("zeroTrustDlpDatasetResource", new()
{
    AccountId = "string",
    Name = "string",
    DatasetId = "string",
    Description = "string",
    EncodingVersion = 0,
    Secret = false,
});
Copy
example, err := cloudflare.NewZeroTrustDlpDataset(ctx, "zeroTrustDlpDatasetResource", &cloudflare.ZeroTrustDlpDatasetArgs{
	AccountId:       pulumi.String("string"),
	Name:            pulumi.String("string"),
	DatasetId:       pulumi.String("string"),
	Description:     pulumi.String("string"),
	EncodingVersion: pulumi.Int(0),
	Secret:          pulumi.Bool(false),
})
Copy
var zeroTrustDlpDatasetResource = new ZeroTrustDlpDataset("zeroTrustDlpDatasetResource", ZeroTrustDlpDatasetArgs.builder()
    .accountId("string")
    .name("string")
    .datasetId("string")
    .description("string")
    .encodingVersion(0)
    .secret(false)
    .build());
Copy
zero_trust_dlp_dataset_resource = cloudflare.ZeroTrustDlpDataset("zeroTrustDlpDatasetResource",
    account_id="string",
    name="string",
    dataset_id="string",
    description="string",
    encoding_version=0,
    secret=False)
Copy
const zeroTrustDlpDatasetResource = new cloudflare.ZeroTrustDlpDataset("zeroTrustDlpDatasetResource", {
    accountId: "string",
    name: "string",
    datasetId: "string",
    description: "string",
    encodingVersion: 0,
    secret: false,
});
Copy
type: cloudflare:ZeroTrustDlpDataset
properties:
    accountId: string
    datasetId: string
    description: string
    encodingVersion: 0
    name: string
    secret: false
Copy

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

AccountId This property is required. string
Name This property is required. string
DatasetId string
Description string
The description of the dataset
EncodingVersion int
Dataset encoding version
Secret bool
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
AccountId This property is required. string
Name This property is required. string
DatasetId string
Description string
The description of the dataset
EncodingVersion int
Dataset encoding version
Secret bool
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
accountId This property is required. String
name This property is required. String
datasetId String
description String
The description of the dataset
encodingVersion Integer
Dataset encoding version
secret Boolean
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
accountId This property is required. string
name This property is required. string
datasetId string
description string
The description of the dataset
encodingVersion number
Dataset encoding version
secret boolean
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
account_id This property is required. str
name This property is required. str
dataset_id str
description str
The description of the dataset
encoding_version int
Dataset encoding version
secret bool
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
accountId This property is required. String
name This property is required. String
datasetId String
description String
The description of the dataset
encodingVersion Number
Dataset encoding version
secret Boolean
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.

Outputs

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

Columns List<ZeroTrustDlpDatasetColumn>
CreatedAt string
Dataset ZeroTrustDlpDatasetDataset
Id string
The provider-assigned unique ID for this managed resource.
MaxCells int
NumCells int
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
UpdatedAt string
When the dataset was last updated. This includes name or description changes as well as uploads.
Uploads List<ZeroTrustDlpDatasetUpload>
Version int
The version to use when uploading the dataset.
Columns []ZeroTrustDlpDatasetColumn
CreatedAt string
Dataset ZeroTrustDlpDatasetDataset
Id string
The provider-assigned unique ID for this managed resource.
MaxCells int
NumCells int
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
UpdatedAt string
When the dataset was last updated. This includes name or description changes as well as uploads.
Uploads []ZeroTrustDlpDatasetUpload
Version int
The version to use when uploading the dataset.
columns List<ZeroTrustDlpDatasetColumn>
createdAt String
dataset ZeroTrustDlpDatasetDataset
id String
The provider-assigned unique ID for this managed resource.
maxCells Integer
numCells Integer
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt String
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads List<ZeroTrustDlpDatasetUpload>
version Integer
The version to use when uploading the dataset.
columns ZeroTrustDlpDatasetColumn[]
createdAt string
dataset ZeroTrustDlpDatasetDataset
id string
The provider-assigned unique ID for this managed resource.
maxCells number
numCells number
status string
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt string
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads ZeroTrustDlpDatasetUpload[]
version number
The version to use when uploading the dataset.
columns Sequence[ZeroTrustDlpDatasetColumn]
created_at str
dataset ZeroTrustDlpDatasetDataset
id str
The provider-assigned unique ID for this managed resource.
max_cells int
num_cells int
status str
Available values: "empty", "uploading", "processing", "failed", "complete".
updated_at str
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads Sequence[ZeroTrustDlpDatasetUpload]
version int
The version to use when uploading the dataset.
columns List<Property Map>
createdAt String
dataset Property Map
id String
The provider-assigned unique ID for this managed resource.
maxCells Number
numCells Number
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt String
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads List<Property Map>
version Number
The version to use when uploading the dataset.

Look up Existing ZeroTrustDlpDataset Resource

Get an existing ZeroTrustDlpDataset 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?: ZeroTrustDlpDatasetState, opts?: CustomResourceOptions): ZeroTrustDlpDataset
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        columns: Optional[Sequence[ZeroTrustDlpDatasetColumnArgs]] = None,
        created_at: Optional[str] = None,
        dataset: Optional[ZeroTrustDlpDatasetDatasetArgs] = None,
        dataset_id: Optional[str] = None,
        description: Optional[str] = None,
        encoding_version: Optional[int] = None,
        max_cells: Optional[int] = None,
        name: Optional[str] = None,
        num_cells: Optional[int] = None,
        secret: Optional[bool] = None,
        status: Optional[str] = None,
        updated_at: Optional[str] = None,
        uploads: Optional[Sequence[ZeroTrustDlpDatasetUploadArgs]] = None,
        version: Optional[int] = None) -> ZeroTrustDlpDataset
func GetZeroTrustDlpDataset(ctx *Context, name string, id IDInput, state *ZeroTrustDlpDatasetState, opts ...ResourceOption) (*ZeroTrustDlpDataset, error)
public static ZeroTrustDlpDataset Get(string name, Input<string> id, ZeroTrustDlpDatasetState? state, CustomResourceOptions? opts = null)
public static ZeroTrustDlpDataset get(String name, Output<String> id, ZeroTrustDlpDatasetState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZeroTrustDlpDataset    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Columns List<ZeroTrustDlpDatasetColumn>
CreatedAt string
Dataset ZeroTrustDlpDatasetDataset
DatasetId string
Description string
The description of the dataset
EncodingVersion int
Dataset encoding version
MaxCells int
Name string
NumCells int
Secret bool
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
UpdatedAt string
When the dataset was last updated. This includes name or description changes as well as uploads.
Uploads List<ZeroTrustDlpDatasetUpload>
Version int
The version to use when uploading the dataset.
AccountId string
Columns []ZeroTrustDlpDatasetColumnArgs
CreatedAt string
Dataset ZeroTrustDlpDatasetDatasetArgs
DatasetId string
Description string
The description of the dataset
EncodingVersion int
Dataset encoding version
MaxCells int
Name string
NumCells int
Secret bool
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
UpdatedAt string
When the dataset was last updated. This includes name or description changes as well as uploads.
Uploads []ZeroTrustDlpDatasetUploadArgs
Version int
The version to use when uploading the dataset.
accountId String
columns List<ZeroTrustDlpDatasetColumn>
createdAt String
dataset ZeroTrustDlpDatasetDataset
datasetId String
description String
The description of the dataset
encodingVersion Integer
Dataset encoding version
maxCells Integer
name String
numCells Integer
secret Boolean
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt String
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads List<ZeroTrustDlpDatasetUpload>
version Integer
The version to use when uploading the dataset.
accountId string
columns ZeroTrustDlpDatasetColumn[]
createdAt string
dataset ZeroTrustDlpDatasetDataset
datasetId string
description string
The description of the dataset
encodingVersion number
Dataset encoding version
maxCells number
name string
numCells number
secret boolean
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
status string
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt string
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads ZeroTrustDlpDatasetUpload[]
version number
The version to use when uploading the dataset.
account_id str
columns Sequence[ZeroTrustDlpDatasetColumnArgs]
created_at str
dataset ZeroTrustDlpDatasetDatasetArgs
dataset_id str
description str
The description of the dataset
encoding_version int
Dataset encoding version
max_cells int
name str
num_cells int
secret bool
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
status str
Available values: "empty", "uploading", "processing", "failed", "complete".
updated_at str
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads Sequence[ZeroTrustDlpDatasetUploadArgs]
version int
The version to use when uploading the dataset.
accountId String
columns List<Property Map>
createdAt String
dataset Property Map
datasetId String
description String
The description of the dataset
encodingVersion Number
Dataset encoding version
maxCells Number
name String
numCells Number
secret Boolean
Generate a secret dataset. If true, the response will include a secret to use with the EDM encoder. If false, the response has no secret and the dataset is uploaded in plaintext.
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt String
When the dataset was last updated. This includes name or description changes as well as uploads.
uploads List<Property Map>
version Number
The version to use when uploading the dataset.

Supporting Types

ZeroTrustDlpDatasetColumn
, ZeroTrustDlpDatasetColumnArgs

EntryId string
HeaderName string
NumCells int
UploadStatus string
Available values: "empty", "uploading", "processing", "failed", "complete".
EntryId string
HeaderName string
NumCells int
UploadStatus string
Available values: "empty", "uploading", "processing", "failed", "complete".
entryId String
headerName String
numCells Integer
uploadStatus String
Available values: "empty", "uploading", "processing", "failed", "complete".
entryId string
headerName string
numCells number
uploadStatus string
Available values: "empty", "uploading", "processing", "failed", "complete".
entry_id str
header_name str
num_cells int
upload_status str
Available values: "empty", "uploading", "processing", "failed", "complete".
entryId String
headerName String
numCells Number
uploadStatus String
Available values: "empty", "uploading", "processing", "failed", "complete".

ZeroTrustDlpDatasetDataset
, ZeroTrustDlpDatasetDatasetArgs

Columns List<ZeroTrustDlpDatasetDatasetColumn>
CreatedAt string
Description string
The description of the dataset
EncodingVersion int
Id string
Name string
NumCells int
Secret bool
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
UpdatedAt string
When the dataset was last updated.
Uploads List<ZeroTrustDlpDatasetDatasetUpload>
Columns []ZeroTrustDlpDatasetDatasetColumn
CreatedAt string
Description string
The description of the dataset
EncodingVersion int
Id string
Name string
NumCells int
Secret bool
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
UpdatedAt string
When the dataset was last updated.
Uploads []ZeroTrustDlpDatasetDatasetUpload
columns List<ZeroTrustDlpDatasetDatasetColumn>
createdAt String
description String
The description of the dataset
encodingVersion Integer
id String
name String
numCells Integer
secret Boolean
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt String
When the dataset was last updated.
uploads List<ZeroTrustDlpDatasetDatasetUpload>
columns ZeroTrustDlpDatasetDatasetColumn[]
createdAt string
description string
The description of the dataset
encodingVersion number
id string
name string
numCells number
secret boolean
status string
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt string
When the dataset was last updated.
uploads ZeroTrustDlpDatasetDatasetUpload[]
columns Sequence[ZeroTrustDlpDatasetDatasetColumn]
created_at str
description str
The description of the dataset
encoding_version int
id str
name str
num_cells int
secret bool
status str
Available values: "empty", "uploading", "processing", "failed", "complete".
updated_at str
When the dataset was last updated.
uploads Sequence[ZeroTrustDlpDatasetDatasetUpload]
columns List<Property Map>
createdAt String
description String
The description of the dataset
encodingVersion Number
id String
name String
numCells Number
secret Boolean
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
updatedAt String
When the dataset was last updated.
uploads List<Property Map>

ZeroTrustDlpDatasetDatasetColumn
, ZeroTrustDlpDatasetDatasetColumnArgs

EntryId string
HeaderName string
NumCells int
UploadStatus string
Available values: "empty", "uploading", "processing", "failed", "complete".
EntryId string
HeaderName string
NumCells int
UploadStatus string
Available values: "empty", "uploading", "processing", "failed", "complete".
entryId String
headerName String
numCells Integer
uploadStatus String
Available values: "empty", "uploading", "processing", "failed", "complete".
entryId string
headerName string
numCells number
uploadStatus string
Available values: "empty", "uploading", "processing", "failed", "complete".
entry_id str
header_name str
num_cells int
upload_status str
Available values: "empty", "uploading", "processing", "failed", "complete".
entryId String
headerName String
numCells Number
uploadStatus String
Available values: "empty", "uploading", "processing", "failed", "complete".

ZeroTrustDlpDatasetDatasetUpload
, ZeroTrustDlpDatasetDatasetUploadArgs

NumCells int
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
Version int
NumCells int
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
Version int
numCells Integer
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
version Integer
numCells number
status string
Available values: "empty", "uploading", "processing", "failed", "complete".
version number
num_cells int
status str
Available values: "empty", "uploading", "processing", "failed", "complete".
version int
numCells Number
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
version Number

ZeroTrustDlpDatasetUpload
, ZeroTrustDlpDatasetUploadArgs

NumCells int
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
Version int
NumCells int
Status string
Available values: "empty", "uploading", "processing", "failed", "complete".
Version int
numCells Integer
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
version Integer
numCells number
status string
Available values: "empty", "uploading", "processing", "failed", "complete".
version number
num_cells int
status str
Available values: "empty", "uploading", "processing", "failed", "complete".
version int
numCells Number
status String
Available values: "empty", "uploading", "processing", "failed", "complete".
version Number

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.