Remediation Class
The remediation definition.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
Remediation(*, policy_assignment_id: str | None = None, policy_definition_reference_id: str | None = None, resource_discovery_mode: str | ResourceDiscoveryMode | None = None, filters: RemediationFilters | None = None, **kwargs)
Parameters
| Name | Description |
|---|---|
|
policy_assignment_id
Required
|
The resource ID of the policy assignment that should be remediated. |
|
policy_definition_reference_id
Required
|
The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition. |
|
resource_discovery_mode
Required
|
The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified. Possible values include: "ExistingNonCompliant", "ReEvaluateCompliance". |
|
filters
Required
|
The filters that will be applied to determine which resources to remediate. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
policy_assignment_id
|
Default value: None
|
|
policy_definition_reference_id
|
Default value: None
|
|
resource_discovery_mode
|
Default value: None
|
|
filters
|
Default value: None
|
Variables
| Name | Description |
|---|---|
|
id
|
The ID of the remediation. |
|
type
|
The type of the remediation. |
|
name
|
The name of the remediation. |
|
provisioning_state
|
The status of the remediation. |
|
created_on
|
The time at which the remediation was created. |
|
last_updated_on
|
The time at which the remediation was last updated. |
|
deployment_status
|
The deployment status summary for all deployments created by the remediation. |