PolicyExemption Class

The policy exemption.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.resource.policy._serialization.Model
PolicyExemption

Constructor

PolicyExemption(*, policy_assignment_id: str, exemption_category: str | _models.ExemptionCategory, policy_definition_reference_ids: List[str] | None = None, expires_on: datetime | None = None, display_name: str | None = None, description: str | None = None, metadata: MutableMapping[str, Any] | None = None, resource_selectors: List[_models.ResourceSelector] | None = None, assignment_scope_validation: str | _models.AssignmentScopeValidation | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
policy_assignment_id
str

The ID of the policy assignment that is being exempted. Required.

policy_definition_reference_ids

The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.

exemption_category

The policy exemption category. Possible values are Waiver and Mitigated. Required. Known values are: "Waiver" and "Mitigated".

expires_on

The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.

display_name
str

The display name of the policy exemption.

description
str

The description of the policy exemption.

metadata
<xref:JSON>

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

resource_selectors

The resource selector list to filter policies by resource properties.

assignment_scope_validation

The option whether validate the exemption is at or under the assignment scope. Known values are: "Default" and "DoNotValidate".

Variables

Name Description
system_data

Azure Resource Manager metadata containing createdBy and modifiedBy information.

id
str

The ID of the policy exemption.

name
str

The name of the policy exemption.

type
str

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

policy_assignment_id
str

The ID of the policy assignment that is being exempted. Required.

policy_definition_reference_ids

The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.

exemption_category

The policy exemption category. Possible values are Waiver and Mitigated. Required. Known values are: "Waiver" and "Mitigated".

expires_on

The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.

display_name
str

The display name of the policy exemption.

description
str

The description of the policy exemption.

metadata
<xref:JSON>

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

resource_selectors

The resource selector list to filter policies by resource properties.

assignment_scope_validation

The option whether validate the exemption is at or under the assignment scope. Known values are: "Default" and "DoNotValidate".