PolicyAction Struct

Definition

The effective outcome of the policy evaluation based on both the policy effect and evaluation result. Possible values are Unknown, Allow, Audit, Deny, Error.

public readonly struct PolicyAction : IEquatable<Azure.ResourceManager.Resources.Policy.Models.PolicyAction>
type PolicyAction = struct
Public Structure PolicyAction
Implements IEquatable(Of PolicyAction)
Inheritance
PolicyAction
Implements

Constructors

Name Description
PolicyAction(String)

Initializes a new instance of PolicyAction.

Properties

Name Description
Allow

The effective outcome of policy evaluation is to allow the request.

Audit

The effective outcome of policy evaluation is to audit the request.

Deny

The effective outcome of policy evaluation is to deny the request.

Error

The policy evaluation resulted in an error.

Unknown

The effective outcome of policy evaluation is unknown.

Methods

Name Description
Equals(PolicyAction)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Equality(PolicyAction, PolicyAction)

Determines if two PolicyAction values are the same.

Implicit(String to Nullable<PolicyAction>)
Implicit(String to PolicyAction)

Converts a string to a PolicyAction.

Inequality(PolicyAction, PolicyAction)

Determines if two PolicyAction values are not the same.

Applies to