cloudflare.DlpProfile
Explore with Pulumi AI
Provides a Cloudflare DLP Profile resource. Data Loss Prevention profiles are a set of entries that can be matched in HTTP bodies or files. They are referenced in Zero Trust Gateway rules.
Create DlpProfile Resource
new DlpProfile(name: string, args: DlpProfileArgs, opts?: CustomResourceOptions);
@overload
def DlpProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
allowed_match_count: Optional[int] = None,
description: Optional[str] = None,
entries: Optional[Sequence[DlpProfileEntryArgs]] = None,
name: Optional[str] = None,
type: Optional[str] = None)
@overload
def DlpProfile(resource_name: str,
args: DlpProfileArgs,
opts: Optional[ResourceOptions] = None)
func NewDlpProfile(ctx *Context, name string, args DlpProfileArgs, opts ...ResourceOption) (*DlpProfile, error)
public DlpProfile(string name, DlpProfileArgs args, CustomResourceOptions? opts = null)
public DlpProfile(String name, DlpProfileArgs args)
public DlpProfile(String name, DlpProfileArgs args, CustomResourceOptions options)
type: cloudflare:DlpProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlpProfileArgs
- 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 DlpProfileArgs
- 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 DlpProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DlpProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DlpProfileArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DlpProfile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DlpProfile resource accepts the following input properties:
- Account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Allowed
Match intCount Related DLP policies will trigger when the match count exceeds the number set.
- Entries
List<Dlp
Profile Entry Args> List of entries to apply to the profile.
- Name string
Name of the profile. Modifying this attribute will force creation of a new resource.
- Type string
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.- Description string
Brief summary of the profile and its intended use.
- Account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Allowed
Match intCount Related DLP policies will trigger when the match count exceeds the number set.
- Entries
[]Dlp
Profile Entry Args List of entries to apply to the profile.
- Name string
Name of the profile. Modifying this attribute will force creation of a new resource.
- Type string
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.- Description string
Brief summary of the profile and its intended use.
- account
Id String The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed
Match IntegerCount Related DLP policies will trigger when the match count exceeds the number set.
- entries
List<Dlp
Profile Entry Args> List of entries to apply to the profile.
- name String
Name of the profile. Modifying this attribute will force creation of a new resource.
- type String
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.- description String
Brief summary of the profile and its intended use.
- account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed
Match numberCount Related DLP policies will trigger when the match count exceeds the number set.
- entries
Dlp
Profile Entry Args[] List of entries to apply to the profile.
- name string
Name of the profile. Modifying this attribute will force creation of a new resource.
- type string
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.- description string
Brief summary of the profile and its intended use.
- account_
id str The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed_
match_ intcount Related DLP policies will trigger when the match count exceeds the number set.
- entries
Sequence[Dlp
Profile Entry Args] List of entries to apply to the profile.
- name str
Name of the profile. Modifying this attribute will force creation of a new resource.
- type str
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.- description str
Brief summary of the profile and its intended use.
- account
Id String The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed
Match NumberCount Related DLP policies will trigger when the match count exceeds the number set.
- entries List<Property Map>
List of entries to apply to the profile.
- name String
Name of the profile. Modifying this attribute will force creation of a new resource.
- type String
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.- description String
Brief summary of the profile and its intended use.
Outputs
All input properties are implicitly available as output properties. Additionally, the DlpProfile resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing DlpProfile Resource
Get an existing DlpProfile 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?: DlpProfileState, opts?: CustomResourceOptions): DlpProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
allowed_match_count: Optional[int] = None,
description: Optional[str] = None,
entries: Optional[Sequence[DlpProfileEntryArgs]] = None,
name: Optional[str] = None,
type: Optional[str] = None) -> DlpProfile
func GetDlpProfile(ctx *Context, name string, id IDInput, state *DlpProfileState, opts ...ResourceOption) (*DlpProfile, error)
public static DlpProfile Get(string name, Input<string> id, DlpProfileState? state, CustomResourceOptions? opts = null)
public static DlpProfile get(String name, Output<String> id, DlpProfileState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Allowed
Match intCount Related DLP policies will trigger when the match count exceeds the number set.
- Description string
Brief summary of the profile and its intended use.
- Entries
List<Dlp
Profile Entry Args> List of entries to apply to the profile.
- Name string
Name of the profile. Modifying this attribute will force creation of a new resource.
- Type string
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.
- Account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Allowed
Match intCount Related DLP policies will trigger when the match count exceeds the number set.
- Description string
Brief summary of the profile and its intended use.
- Entries
[]Dlp
Profile Entry Args List of entries to apply to the profile.
- Name string
Name of the profile. Modifying this attribute will force creation of a new resource.
- Type string
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.
- account
Id String The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed
Match IntegerCount Related DLP policies will trigger when the match count exceeds the number set.
- description String
Brief summary of the profile and its intended use.
- entries
List<Dlp
Profile Entry Args> List of entries to apply to the profile.
- name String
Name of the profile. Modifying this attribute will force creation of a new resource.
- type String
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.
- account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed
Match numberCount Related DLP policies will trigger when the match count exceeds the number set.
- description string
Brief summary of the profile and its intended use.
- entries
Dlp
Profile Entry Args[] List of entries to apply to the profile.
- name string
Name of the profile. Modifying this attribute will force creation of a new resource.
- type string
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.
- account_
id str The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed_
match_ intcount Related DLP policies will trigger when the match count exceeds the number set.
- description str
Brief summary of the profile and its intended use.
- entries
Sequence[Dlp
Profile Entry Args] List of entries to apply to the profile.
- name str
Name of the profile. Modifying this attribute will force creation of a new resource.
- type str
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.
- account
Id String The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- allowed
Match NumberCount Related DLP policies will trigger when the match count exceeds the number set.
- description String
Brief summary of the profile and its intended use.
- entries List<Property Map>
List of entries to apply to the profile.
- name String
Name of the profile. Modifying this attribute will force creation of a new resource.
- type String
The type of the profile. Available values:
custom
,predefined
. Modifying this attribute will force creation of a new resource.
Supporting Types
DlpProfileEntry
- Name string
Name of the entry to deploy.
- Enabled bool
Whether the entry is active. Defaults to
false
.- Id string
Unique entry identifier.
- Pattern
Dlp
Profile Entry Pattern
- Name string
Name of the entry to deploy.
- Enabled bool
Whether the entry is active. Defaults to
false
.- Id string
Unique entry identifier.
- Pattern
Dlp
Profile Entry Pattern
- name String
Name of the entry to deploy.
- enabled Boolean
Whether the entry is active. Defaults to
false
.- id String
Unique entry identifier.
- pattern
Dlp
Profile Entry Pattern
- name string
Name of the entry to deploy.
- enabled boolean
Whether the entry is active. Defaults to
false
.- id string
Unique entry identifier.
- pattern
Dlp
Profile Entry Pattern
- name str
Name of the entry to deploy.
- enabled bool
Whether the entry is active. Defaults to
false
.- id str
Unique entry identifier.
- pattern
Dlp
Profile Entry Pattern
- name String
Name of the entry to deploy.
- enabled Boolean
Whether the entry is active. Defaults to
false
.- id String
Unique entry identifier.
- pattern Property Map
DlpProfileEntryPattern
- Regex string
- Validation string
- Regex string
- Validation string
- regex String
- validation String
- regex string
- validation string
- regex str
- validation str
- regex String
- validation String
Import
$ pulumi import cloudflare:index/dlpProfile:DlpProfile example <account_id>/<dlp_profile_id>
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.