Interface PolicyDefinition

All Superinterfaces:
HasId, HasInnerModel<PolicyDefinitionInner>, HasName, Indexable, Refreshable<PolicyDefinition>, Updatable<PolicyDefinition.Update>

An immutable client-side representation of an Azure policy.
  • Method Details

    • policyType

      PolicyType policyType()
      Gets the type of the policy definition.
      Returns:
      the type of the policy definition
    • displayName

      String displayName()
      Gets display name of the policy definition.
      Returns:
      the policy definition display name
    • description

      String description()
      Gets the policy definition description.
      Returns:
      the policy definition description
    • policyRule

      Object policyRule()
      Gets the policy rule.
      Returns:
      the policy rule
    • parameters

      Gets the parameters of the policy definition.
      Returns:
      the parameters of the policy definition
    • mode

      String mode()
      Gets the policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
      Returns:
      the policy definition mode.
    • metadata

      Object metadata()
      Gets the policy definition metadata. Metadata is an open-ended object and is typically a collection of key value pairs.
      Returns:
      the policy definition metadata.