PolicyDefinition Constructors

Definition

Overloads

PolicyDefinition()

Initializes a new instance of the PolicyDefinition class.

PolicyDefinition(String, String, String, String, Object, Object, IDictionary<String,ParameterDefinitionsValue>, String, String, String)

Initializes a new instance of the PolicyDefinition class.

PolicyDefinition()

Initializes a new instance of the PolicyDefinition class.

public PolicyDefinition ();
Public Sub New ()

PolicyDefinition(String, String, String, String, Object, Object, IDictionary<String,ParameterDefinitionsValue>, String, String, String)

Initializes a new instance of the PolicyDefinition class.

public PolicyDefinition (string policyType = default, string mode = default, string displayName = default, string description = default, object policyRule = default, object metadata = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.ResourceManager.Models.ParameterDefinitionsValue> parameters = default, string id = default, string name = default, string type = default);
new Microsoft.Azure.Management.ResourceManager.Models.PolicyDefinition : string * string * string * string * obj * obj * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.ResourceManager.Models.ParameterDefinitionsValue> * string * string * string -> Microsoft.Azure.Management.ResourceManager.Models.PolicyDefinition
Public Sub New (Optional policyType As String = null, Optional mode As String = null, Optional displayName As String = null, Optional description As String = null, Optional policyRule As Object = null, Optional metadata As Object = null, Optional parameters As IDictionary(Of String, ParameterDefinitionsValue) = null, Optional id As String = null, Optional name As String = null, Optional type As String = null)

Parameters

policyType
String

The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom', 'Static'

mode
String

The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

displayName
String

The display name of the policy definition.

description
String

The policy definition description.

policyRule
Object

The policy rule.

metadata
Object

The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.

parameters
IDictionary<String,ParameterDefinitionsValue>

The parameter definitions for parameters used in the policy rule. The keys are the parameter names.

id
String

The ID of the policy definition.

name
String

The name of the policy definition.

type
String

The type of the resource (Microsoft.Authorization/policyDefinitions).

Applies to