PolicyViolationV2
PolicyViolationV2 represents a policy violation detected during an update or resource scan.
Properties
idstring requiredThe unique identifier of the policy violation.projectNamestring requiredThe name of the project containing the violating resource.stackNamestring optionalThe name of the stack containing the violating resource.stackVersioninteger optionalThe stack version where the violation was detected.accountNamestring optionalThe Insights account name associated with the violation, for resource-scoped violations.resourceVersioninteger optionalThe resource version where the violation was detected.policyPackstring requiredThe name of the policy pack that produced this violation.policyPackTagstring requiredThe tag of the policy pack version that produced this violation.policyNamestring requiredThe name of the policy that was violated.resourceURNstring requiredThe URN of the resource that violated the policy.resourceTypestring requiredThe type of the resource that violated the policy.resourceNamestring requiredThe name of the resource that violated the policy.messagestring requiredA human-readable message describing the policy violation.observedAtstring requiredThe timestamp when the violation was observed.levelstring requiredThe enforcement level of the violated policy (e.g. advisory, mandatory, disabled).kindenum requiredThe kind of policy violation (audit or preventative).Values:audit,preventative
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.