1. Packages
  2. Packages
  3. Power Platform
  4. API Docs
  5. components
  6. ResDlpPolicy
Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin
powerplatform logo
Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin

    AVM-aligned Pulumi component for a Power Platform DLP Policy.

    Composes a single ``powerplatform:components:DlpPolicy`` child resource with
    an opinionated, AVM-compatible interface.
    
    .. important::
        DLP policies apply tenant-wide.  Ensure only one stack manages a
        given policy to prevent conflicts between stacks.
    
    Example (Python)::
    
        import rpothin_powerplatform as pp
    
        policy = pp.components.ResDlpPolicy(
            "my-policy",
            pp.components.ResDlpPolicyArgs(
                display_name="My DLP Policy",
                rule_sets=[
                    {
                        "classification": "Business",
                        "connectors": [
                            {"id": "/providers/Microsoft.PowerApps/apis/shared_office365"},
                        ],
                    }
                ],
            ),
        )
    

    Create ResDlpPolicy Resource

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

    Constructor syntax

    new ResDlpPolicy(name: string, args: ResDlpPolicyArgs, opts?: ComponentResourceOptions);
    @overload
    def ResDlpPolicy(resource_name: str,
                     args: ResDlpPolicyArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResDlpPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     display_name: Optional[str] = None,
                     enable_telemetry: Optional[bool] = None,
                     rule_sets: Optional[Sequence[Any]] = None)
    func NewResDlpPolicy(ctx *Context, name string, args ResDlpPolicyArgs, opts ...ResourceOption) (*ResDlpPolicy, error)
    public ResDlpPolicy(string name, ResDlpPolicyArgs args, ComponentResourceOptions? opts = null)
    public ResDlpPolicy(String name, ResDlpPolicyArgs args)
    public ResDlpPolicy(String name, ResDlpPolicyArgs args, ComponentResourceOptions options)
    
    type: powerplatform:components:ResDlpPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "powerplatform_components_resdlppolicy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ResDlpPolicyArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ResDlpPolicyArgs
    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 ResDlpPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResDlpPolicyArgs
    The arguments to resource properties.
    opts ComponentResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResDlpPolicyArgs
    The arguments to resource properties.
    options ComponentResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var resDlpPolicyResource = new Powerplatform.Components.ResDlpPolicy("resDlpPolicyResource", new()
    {
        DisplayName = "string",
        EnableTelemetry = false,
        RuleSets = new()
        {
            "any",
        },
    });
    
    example, err := components.NewResDlpPolicy(ctx, "resDlpPolicyResource", &components.ResDlpPolicyArgs{
    	DisplayName:     "string",
    	EnableTelemetry: false,
    	RuleSets: []string{
    		"any",
    	},
    })
    
    resource "powerplatform_components_resdlppolicy" "resDlpPolicyResource" {
      display_name     = "string"
      enable_telemetry = false
      rule_sets        = ["any"]
    }
    
    var resDlpPolicyResource = new ResDlpPolicy("resDlpPolicyResource", ResDlpPolicyArgs.builder()
        .displayName("string")
        .enableTelemetry(false)
        .ruleSets("any")
        .build());
    
    res_dlp_policy_resource = powerplatform.components.ResDlpPolicy("resDlpPolicyResource",
        display_name="string",
        enable_telemetry=False,
        rule_sets=["any"])
    
    const resDlpPolicyResource = new powerplatform.components.ResDlpPolicy("resDlpPolicyResource", {
        displayName: "string",
        enableTelemetry: false,
        ruleSets: ["any"],
    });
    
    type: powerplatform:components:ResDlpPolicy
    properties:
        displayName: string
        enableTelemetry: false
        ruleSets:
            - any
    

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

    DisplayName string
    EnableTelemetry bool
    RuleSets List<object>
    DisplayName string
    EnableTelemetry bool
    RuleSets []interface{}
    displayName String
    enableTelemetry Boolean
    ruleSets List<Object>
    displayName String
    enableTelemetry Boolean
    ruleSets List<Any>

    Outputs

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

    lastModified String
    policyName String
    resourceId String
    ruleSetCount Integer
    tenantId String
    lastModified string
    policyName string
    resourceId string
    ruleSetCount number
    tenantId string
    lastModified String
    policyName String
    resourceId String
    ruleSetCount Number
    tenantId String

    Package Details

    Repository
    powerplatform rpothin/pulumi-powerplatform
    License
    MIT
    powerplatform logo
    Viewing docs for Power Platform v0.4.1
    published on Monday, Jun 15, 2026 by rpothin

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial