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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
exampleZeroTrustDlpDataset:
type: cloudflare:ZeroTrustDlpDataset
name: example_zero_trust_dlp_dataset
properties:
accountId: account_id
name: name
description: description
encodingVersion: 0
secret: true
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 string
- The unique name of the resource.
- args ZeroTrustDlpDatasetArgs
- 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 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 string
- The unique name of the resource.
- args ZeroTrustDlpDatasetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustDlpDatasetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
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),
})
var zeroTrustDlpDatasetResource = new ZeroTrustDlpDataset("zeroTrustDlpDatasetResource", ZeroTrustDlpDatasetArgs.builder()
.accountId("string")
.name("string")
.datasetId("string")
.description("string")
.encodingVersion(0)
.secret(false)
.build());
zero_trust_dlp_dataset_resource = cloudflare.ZeroTrustDlpDataset("zeroTrustDlpDatasetResource",
account_id="string",
name="string",
dataset_id="string",
description="string",
encoding_version=0,
secret=False)
const zeroTrustDlpDatasetResource = new cloudflare.ZeroTrustDlpDataset("zeroTrustDlpDatasetResource", {
accountId: "string",
name: "string",
datasetId: "string",
description: "string",
encodingVersion: 0,
secret: false,
});
type: cloudflare:ZeroTrustDlpDataset
properties:
accountId: string
datasetId: string
description: string
encodingVersion: 0
name: string
secret: false
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:
- Account
Id string - Name string
- Dataset
Id string - Description string
- 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.
- Account
Id string - Name string
- Dataset
Id string - Description string
- 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.
- account
Id String - name String
- dataset
Id String - description String
- The description of the dataset
- encoding
Version 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.
- account
Id string - name string
- dataset
Id string - description string
- The description of the dataset
- encoding
Version 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 str - name 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.
- account
Id String - name String
- dataset
Id String - description String
- The description of the dataset
- encoding
Version 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<Zero
Trust Dlp Dataset Column> - Created
At string - Dataset
Zero
Trust Dlp Dataset Dataset - Id string
- The provider-assigned unique ID for this managed resource.
- Max
Cells int - Num
Cells int - Status string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- Updated
At string - When the dataset was last updated. This includes name or description changes as well as uploads.
- Uploads
List<Zero
Trust Dlp Dataset Upload> - Version int
- The version to use when uploading the dataset.
- Columns
[]Zero
Trust Dlp Dataset Column - Created
At string - Dataset
Zero
Trust Dlp Dataset Dataset - Id string
- The provider-assigned unique ID for this managed resource.
- Max
Cells int - Num
Cells int - Status string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- Updated
At string - When the dataset was last updated. This includes name or description changes as well as uploads.
- Uploads
[]Zero
Trust Dlp Dataset Upload - Version int
- The version to use when uploading the dataset.
- columns
List<Zero
Trust Dlp Dataset Column> - created
At String - dataset
Zero
Trust Dlp Dataset Dataset - id String
- The provider-assigned unique ID for this managed resource.
- max
Cells Integer - num
Cells Integer - status String
- Available values: "empty", "uploading", "processing", "failed", "complete".
- updated
At String - When the dataset was last updated. This includes name or description changes as well as uploads.
- uploads
List<Zero
Trust Dlp Dataset Upload> - version Integer
- The version to use when uploading the dataset.
- columns
Zero
Trust Dlp Dataset Column[] - created
At string - dataset
Zero
Trust Dlp Dataset Dataset - id string
- The provider-assigned unique ID for this managed resource.
- max
Cells number - num
Cells number - status string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- updated
At string - When the dataset was last updated. This includes name or description changes as well as uploads.
- uploads
Zero
Trust Dlp Dataset Upload[] - version number
- The version to use when uploading the dataset.
- columns
Sequence[Zero
Trust Dlp Dataset Column] - created_
at str - dataset
Zero
Trust Dlp Dataset Dataset - 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[Zero
Trust Dlp Dataset Upload] - version int
- The version to use when uploading the dataset.
- columns List<Property Map>
- created
At String - dataset Property Map
- id String
- The provider-assigned unique ID for this managed resource.
- max
Cells Number - num
Cells Number - status String
- Available values: "empty", "uploading", "processing", "failed", "complete".
- updated
At 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
- 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 - Columns
List<Zero
Trust Dlp Dataset Column> - Created
At string - Dataset
Zero
Trust Dlp Dataset Dataset - Dataset
Id string - Description string
- The description of the dataset
- Encoding
Version int - Dataset encoding version
- Max
Cells int - Name string
- 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 string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- Updated
At string - When the dataset was last updated. This includes name or description changes as well as uploads.
- Uploads
List<Zero
Trust Dlp Dataset Upload> - Version int
- The version to use when uploading the dataset.
- Account
Id string - Columns
[]Zero
Trust Dlp Dataset Column Args - Created
At string - Dataset
Zero
Trust Dlp Dataset Dataset Args - Dataset
Id string - Description string
- The description of the dataset
- Encoding
Version int - Dataset encoding version
- Max
Cells int - Name string
- 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 string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- Updated
At string - When the dataset was last updated. This includes name or description changes as well as uploads.
- Uploads
[]Zero
Trust Dlp Dataset Upload Args - Version int
- The version to use when uploading the dataset.
- account
Id String - columns
List<Zero
Trust Dlp Dataset Column> - created
At String - dataset
Zero
Trust Dlp Dataset Dataset - dataset
Id String - description String
- The description of the dataset
- encoding
Version Integer - Dataset encoding version
- max
Cells Integer - name String
- num
Cells 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".
- updated
At String - When the dataset was last updated. This includes name or description changes as well as uploads.
- uploads
List<Zero
Trust Dlp Dataset Upload> - version Integer
- The version to use when uploading the dataset.
- account
Id string - columns
Zero
Trust Dlp Dataset Column[] - created
At string - dataset
Zero
Trust Dlp Dataset Dataset - dataset
Id string - description string
- The description of the dataset
- encoding
Version number - Dataset encoding version
- max
Cells number - name string
- num
Cells 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".
- updated
At string - When the dataset was last updated. This includes name or description changes as well as uploads.
- uploads
Zero
Trust Dlp Dataset Upload[] - version number
- The version to use when uploading the dataset.
- account_
id str - columns
Sequence[Zero
Trust Dlp Dataset Column Args] - created_
at str - dataset
Zero
Trust Dlp Dataset Dataset Args - 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[Zero
Trust Dlp Dataset Upload Args] - version int
- The version to use when uploading the dataset.
- account
Id String - columns List<Property Map>
- created
At String - dataset Property Map
- dataset
Id String - description String
- The description of the dataset
- encoding
Version Number - Dataset encoding version
- max
Cells Number - name String
- num
Cells 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".
- updated
At 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
- Entry
Id string - Header
Name string - Num
Cells int - Upload
Status string - Available values: "empty", "uploading", "processing", "failed", "complete".
- Entry
Id string - Header
Name string - Num
Cells int - Upload
Status string - Available values: "empty", "uploading", "processing", "failed", "complete".
- entry
Id String - header
Name String - num
Cells Integer - upload
Status String - Available values: "empty", "uploading", "processing", "failed", "complete".
- entry
Id string - header
Name string - num
Cells number - upload
Status 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".
- entry
Id String - header
Name String - num
Cells Number - upload
Status String - Available values: "empty", "uploading", "processing", "failed", "complete".
ZeroTrustDlpDatasetDataset, ZeroTrustDlpDatasetDatasetArgs
- Columns
List<Zero
Trust Dlp Dataset Dataset Column> - Created
At string - Description string
- The description of the dataset
- Encoding
Version int - Id string
- Name string
- Num
Cells int - Secret bool
- Status string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- Updated
At string - When the dataset was last updated.
- Uploads
List<Zero
Trust Dlp Dataset Dataset Upload>
- Columns
[]Zero
Trust Dlp Dataset Dataset Column - Created
At string - Description string
- The description of the dataset
- Encoding
Version int - Id string
- Name string
- Num
Cells int - Secret bool
- Status string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- Updated
At string - When the dataset was last updated.
- Uploads
[]Zero
Trust Dlp Dataset Dataset Upload
- columns
List<Zero
Trust Dlp Dataset Dataset Column> - created
At String - description String
- The description of the dataset
- encoding
Version Integer - id String
- name String
- num
Cells Integer - secret Boolean
- status String
- Available values: "empty", "uploading", "processing", "failed", "complete".
- updated
At String - When the dataset was last updated.
- uploads
List<Zero
Trust Dlp Dataset Dataset Upload>
- columns
Zero
Trust Dlp Dataset Dataset Column[] - created
At string - description string
- The description of the dataset
- encoding
Version number - id string
- name string
- num
Cells number - secret boolean
- status string
- Available values: "empty", "uploading", "processing", "failed", "complete".
- updated
At string - When the dataset was last updated.
- uploads
Zero
Trust Dlp Dataset Dataset Upload[]
- columns
Sequence[Zero
Trust Dlp Dataset Dataset Column] - 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[Zero
Trust Dlp Dataset Dataset Upload]
- columns List<Property Map>
- created
At String - description String
- The description of the dataset
- encoding
Version Number - id String
- name String
- num
Cells Number - secret Boolean
- status String
- Available values: "empty", "uploading", "processing", "failed", "complete".
- updated
At String - When the dataset was last updated.
- uploads List<Property Map>
ZeroTrustDlpDatasetDatasetColumn, ZeroTrustDlpDatasetDatasetColumnArgs
- Entry
Id string - Header
Name string - Num
Cells int - Upload
Status string - Available values: "empty", "uploading", "processing", "failed", "complete".
- Entry
Id string - Header
Name string - Num
Cells int - Upload
Status string - Available values: "empty", "uploading", "processing", "failed", "complete".
- entry
Id String - header
Name String - num
Cells Integer - upload
Status String - Available values: "empty", "uploading", "processing", "failed", "complete".
- entry
Id string - header
Name string - num
Cells number - upload
Status 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".
- entry
Id String - header
Name String - num
Cells Number - upload
Status String - Available values: "empty", "uploading", "processing", "failed", "complete".
ZeroTrustDlpDatasetDatasetUpload, ZeroTrustDlpDatasetDatasetUploadArgs
ZeroTrustDlpDatasetUpload, ZeroTrustDlpDatasetUploadArgs
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.