1. Packages
  2. Cloudflare
  3. API Docs
  4. DlpProfile
Cloudflare v5.2.1 published on Tuesday, May 23, 2023 by Pulumi

cloudflare.DlpProfile

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.2.1 published on Tuesday, May 23, 2023 by Pulumi

    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:

    AccountId string

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    AllowedMatchCount int

    Related DLP policies will trigger when the match count exceeds the number set.

    Entries List<DlpProfileEntryArgs>

    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.

    AccountId string

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    AllowedMatchCount int

    Related DLP policies will trigger when the match count exceeds the number set.

    Entries []DlpProfileEntryArgs

    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.

    accountId String

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    allowedMatchCount Integer

    Related DLP policies will trigger when the match count exceeds the number set.

    entries List<DlpProfileEntryArgs>

    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.

    accountId string

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    allowedMatchCount number

    Related DLP policies will trigger when the match count exceeds the number set.

    entries DlpProfileEntryArgs[]

    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_count int

    Related DLP policies will trigger when the match count exceeds the number set.

    entries Sequence[DlpProfileEntryArgs]

    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.

    accountId String

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    allowedMatchCount Number

    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.
    The following state arguments are supported:
    AccountId string

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    AllowedMatchCount int

    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<DlpProfileEntryArgs>

    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.

    AccountId string

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    AllowedMatchCount int

    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 []DlpProfileEntryArgs

    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.

    accountId String

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    allowedMatchCount Integer

    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<DlpProfileEntryArgs>

    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.

    accountId string

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    allowedMatchCount number

    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 DlpProfileEntryArgs[]

    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_count int

    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[DlpProfileEntryArgs]

    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.

    accountId String

    The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

    allowedMatchCount Number

    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 DlpProfileEntryPattern
    Name string

    Name of the entry to deploy.

    Enabled bool

    Whether the entry is active. Defaults to false.

    Id string

    Unique entry identifier.

    Pattern DlpProfileEntryPattern
    name String

    Name of the entry to deploy.

    enabled Boolean

    Whether the entry is active. Defaults to false.

    id String

    Unique entry identifier.

    pattern DlpProfileEntryPattern
    name string

    Name of the entry to deploy.

    enabled boolean

    Whether the entry is active. Defaults to false.

    id string

    Unique entry identifier.

    pattern DlpProfileEntryPattern
    name str

    Name of the entry to deploy.

    enabled bool

    Whether the entry is active. Defaults to false.

    id str

    Unique entry identifier.

    pattern DlpProfileEntryPattern
    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 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.

    cloudflare logo
    Cloudflare v5.2.1 published on Tuesday, May 23, 2023 by Pulumi