cloudflare.ZeroTrustDlpEntry
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustDlpEntry = new cloudflare.ZeroTrustDlpEntry("example_zero_trust_dlp_entry", {
accountId: "account_id",
enabled: true,
name: "name",
pattern: {
regex: "regex",
validation: "luhn",
},
profileId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_dlp_entry = cloudflare.ZeroTrustDlpEntry("example_zero_trust_dlp_entry",
account_id="account_id",
enabled=True,
name="name",
pattern={
"regex": "regex",
"validation": "luhn",
},
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
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.NewZeroTrustDlpEntry(ctx, "example_zero_trust_dlp_entry", &cloudflare.ZeroTrustDlpEntryArgs{
AccountId: pulumi.String("account_id"),
Enabled: pulumi.Bool(true),
Name: pulumi.String("name"),
Pattern: &cloudflare.ZeroTrustDlpEntryPatternArgs{
Regex: pulumi.String("regex"),
Validation: pulumi.String("luhn"),
},
ProfileId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
})
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 exampleZeroTrustDlpEntry = new Cloudflare.ZeroTrustDlpEntry("example_zero_trust_dlp_entry", new()
{
AccountId = "account_id",
Enabled = true,
Name = "name",
Pattern = new Cloudflare.Inputs.ZeroTrustDlpEntryPatternArgs
{
Regex = "regex",
Validation = "luhn",
},
ProfileId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustDlpEntry;
import com.pulumi.cloudflare.ZeroTrustDlpEntryArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDlpEntryPatternArgs;
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 exampleZeroTrustDlpEntry = new ZeroTrustDlpEntry("exampleZeroTrustDlpEntry", ZeroTrustDlpEntryArgs.builder()
.accountId("account_id")
.enabled(true)
.name("name")
.pattern(ZeroTrustDlpEntryPatternArgs.builder()
.regex("regex")
.validation("luhn")
.build())
.profileId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.build());
}
}
resources:
exampleZeroTrustDlpEntry:
type: cloudflare:ZeroTrustDlpEntry
name: example_zero_trust_dlp_entry
properties:
accountId: account_id
enabled: true
name: name
pattern:
regex: regex
validation: luhn
profileId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
Create ZeroTrustDlpEntry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustDlpEntry(name: string, args: ZeroTrustDlpEntryArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustDlpEntry(resource_name: str,
args: ZeroTrustDlpEntryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustDlpEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
pattern: Optional[ZeroTrustDlpEntryPatternArgs] = None,
profile_id: Optional[str] = None,
type: Optional[str] = None)
func NewZeroTrustDlpEntry(ctx *Context, name string, args ZeroTrustDlpEntryArgs, opts ...ResourceOption) (*ZeroTrustDlpEntry, error)
public ZeroTrustDlpEntry(string name, ZeroTrustDlpEntryArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDlpEntry(String name, ZeroTrustDlpEntryArgs args)
public ZeroTrustDlpEntry(String name, ZeroTrustDlpEntryArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDlpEntry
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 ZeroTrustDlpEntryArgs
- 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 ZeroTrustDlpEntryArgs
- 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 ZeroTrustDlpEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustDlpEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustDlpEntryArgs
- 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 zeroTrustDlpEntryResource = new Cloudflare.ZeroTrustDlpEntry("zeroTrustDlpEntryResource", new()
{
AccountId = "string",
Enabled = false,
Name = "string",
Pattern = new Cloudflare.Inputs.ZeroTrustDlpEntryPatternArgs
{
Regex = "string",
},
ProfileId = "string",
Type = "string",
});
example, err := cloudflare.NewZeroTrustDlpEntry(ctx, "zeroTrustDlpEntryResource", &cloudflare.ZeroTrustDlpEntryArgs{
AccountId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Pattern: &cloudflare.ZeroTrustDlpEntryPatternArgs{
Regex: pulumi.String("string"),
},
ProfileId: pulumi.String("string"),
Type: pulumi.String("string"),
})
var zeroTrustDlpEntryResource = new ZeroTrustDlpEntry("zeroTrustDlpEntryResource", ZeroTrustDlpEntryArgs.builder()
.accountId("string")
.enabled(false)
.name("string")
.pattern(ZeroTrustDlpEntryPatternArgs.builder()
.regex("string")
.build())
.profileId("string")
.type("string")
.build());
zero_trust_dlp_entry_resource = cloudflare.ZeroTrustDlpEntry("zeroTrustDlpEntryResource",
account_id="string",
enabled=False,
name="string",
pattern={
"regex": "string",
},
profile_id="string",
type="string")
const zeroTrustDlpEntryResource = new cloudflare.ZeroTrustDlpEntry("zeroTrustDlpEntryResource", {
accountId: "string",
enabled: false,
name: "string",
pattern: {
regex: "string",
},
profileId: "string",
type: "string",
});
type: cloudflare:ZeroTrustDlpEntry
properties:
accountId: string
enabled: false
name: string
pattern:
regex: string
profileId: string
type: string
ZeroTrustDlpEntry 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 ZeroTrustDlpEntry resource accepts the following input properties:
- account_
id str - enabled bool
- name str
- pattern
Zero
Trust Dlp Entry Pattern Args - profile_
id str - type str
- Available values: "custom".
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustDlpEntry resource produces the following output properties:
- Confidence
Zero
Trust Dlp Entry Confidence - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Secret bool
- Updated
At string - Word
List string
- Confidence
Zero
Trust Dlp Entry Confidence - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Secret bool
- Updated
At string - Word
List string
- confidence
Zero
Trust Dlp Entry Confidence - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- secret Boolean
- updated
At String - word
List String
- confidence
Zero
Trust Dlp Entry Confidence - created
At string - id string
- The provider-assigned unique ID for this managed resource.
- secret boolean
- updated
At string - word
List string
- confidence
Zero
Trust Dlp Entry Confidence - created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- secret bool
- updated_
at str - word_
list str
- confidence Property Map
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- secret Boolean
- updated
At String - word
List String
Look up Existing ZeroTrustDlpEntry Resource
Get an existing ZeroTrustDlpEntry 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?: ZeroTrustDlpEntryState, opts?: CustomResourceOptions): ZeroTrustDlpEntry
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
confidence: Optional[ZeroTrustDlpEntryConfidenceArgs] = None,
created_at: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
pattern: Optional[ZeroTrustDlpEntryPatternArgs] = None,
profile_id: Optional[str] = None,
secret: Optional[bool] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None,
word_list: Optional[str] = None) -> ZeroTrustDlpEntry
func GetZeroTrustDlpEntry(ctx *Context, name string, id IDInput, state *ZeroTrustDlpEntryState, opts ...ResourceOption) (*ZeroTrustDlpEntry, error)
public static ZeroTrustDlpEntry Get(string name, Input<string> id, ZeroTrustDlpEntryState? state, CustomResourceOptions? opts = null)
public static ZeroTrustDlpEntry get(String name, Output<String> id, ZeroTrustDlpEntryState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustDlpEntry 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 - Confidence
Zero
Trust Dlp Entry Confidence - Created
At string - Enabled bool
- Name string
- Pattern
Zero
Trust Dlp Entry Pattern - Profile
Id string - Secret bool
- Type string
- Available values: "custom".
- Updated
At string - Word
List string
- Account
Id string - Confidence
Zero
Trust Dlp Entry Confidence Args - Created
At string - Enabled bool
- Name string
- Pattern
Zero
Trust Dlp Entry Pattern Args - Profile
Id string - Secret bool
- Type string
- Available values: "custom".
- Updated
At string - Word
List string
- account
Id String - confidence
Zero
Trust Dlp Entry Confidence - created
At String - enabled Boolean
- name String
- pattern
Zero
Trust Dlp Entry Pattern - profile
Id String - secret Boolean
- type String
- Available values: "custom".
- updated
At String - word
List String
- account
Id string - confidence
Zero
Trust Dlp Entry Confidence - created
At string - enabled boolean
- name string
- pattern
Zero
Trust Dlp Entry Pattern - profile
Id string - secret boolean
- type string
- Available values: "custom".
- updated
At string - word
List string
- account_
id str - confidence
Zero
Trust Dlp Entry Confidence Args - created_
at str - enabled bool
- name str
- pattern
Zero
Trust Dlp Entry Pattern Args - profile_
id str - secret bool
- type str
- Available values: "custom".
- updated_
at str - word_
list str
- account
Id String - confidence Property Map
- created
At String - enabled Boolean
- name String
- pattern Property Map
- profile
Id String - secret Boolean
- type String
- Available values: "custom".
- updated
At String - word
List String
Supporting Types
ZeroTrustDlpEntryConfidence, ZeroTrustDlpEntryConfidenceArgs
- Ai
Context boolAvailable - Indicates whether this entry has AI remote service validation
- Available bool
- Indicates whether this entry has any form of validation that is not an AI remote service
- Ai
Context boolAvailable - Indicates whether this entry has AI remote service validation
- Available bool
- Indicates whether this entry has any form of validation that is not an AI remote service
- ai
Context BooleanAvailable - Indicates whether this entry has AI remote service validation
- available Boolean
- Indicates whether this entry has any form of validation that is not an AI remote service
- ai
Context booleanAvailable - Indicates whether this entry has AI remote service validation
- available boolean
- Indicates whether this entry has any form of validation that is not an AI remote service
- ai_
context_ boolavailable - Indicates whether this entry has AI remote service validation
- available bool
- Indicates whether this entry has any form of validation that is not an AI remote service
- ai
Context BooleanAvailable - Indicates whether this entry has AI remote service validation
- available Boolean
- Indicates whether this entry has any form of validation that is not an AI remote service
ZeroTrustDlpEntryPattern, ZeroTrustDlpEntryPatternArgs
- Regex string
- Validation string
- Available values: "luhn".
- Regex string
- Validation string
- Available values: "luhn".
- regex String
- validation String
- Available values: "luhn".
- regex string
- validation string
- Available values: "luhn".
- regex str
- validation str
- Available values: "luhn".
- regex String
- validation String
- Available values: "luhn".
Import
$ pulumi import cloudflare:index/zeroTrustDlpEntry:ZeroTrustDlpEntry example '<account_id>/<entry_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.