Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin
published on Monday, Jun 15, 2026 by rpothin
Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin
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:
- Display
Name string - Enable
Telemetry bool - Rule
Sets List<object>
- Display
Name string - Enable
Telemetry bool - Rule
Sets []interface{}
- display_
name string - enable_
telemetry bool - rule_
sets list(any)
- display
Name String - enable
Telemetry Boolean - rule
Sets List<Object>
- display
Name string - enable
Telemetry boolean - rule
Sets any[]
- display_
name str - enable_
telemetry bool - rule_
sets Sequence[Any]
- display
Name String - enable
Telemetry Boolean - rule
Sets List<Any>
Outputs
All input properties are implicitly available as output properties. Additionally, the ResDlpPolicy resource produces the following output properties:
- Last
Modified string - Policy
Name string - Resource
Id string - Rule
Set intCount - Tenant
Id string
- Last
Modified string - Policy
Name string - Resource
Id string - Rule
Set intCount - Tenant
Id string
- last_
modified string - policy_
name string - resource_
id string - rule_
set_ numbercount - tenant_
id string
- last
Modified String - policy
Name String - resource
Id String - rule
Set IntegerCount - tenant
Id String
- last
Modified string - policy
Name string - resource
Id string - rule
Set numberCount - tenant
Id string
- last_
modified str - policy_
name str - resource_
id str - rule_
set_ intcount - tenant_
id str
- last
Modified String - policy
Name String - resource
Id String - rule
Set NumberCount - tenant
Id String
Package Details
- Repository
- powerplatform rpothin/pulumi-powerplatform
- License
- MIT
Viewing docs for Power Platform v0.4.1
published on Monday, Jun 15, 2026 by rpothin
published on Monday, Jun 15, 2026 by rpothin