Package com.pulumi.automation.events
Class PolicyEvent
- java.lang.Object
-
- com.pulumi.automation.events.PolicyEvent
-
public class PolicyEvent extends java.lang.ObjectPolicyEventis emitted whenever there is Policy violation.
-
-
Constructor Summary
Constructors Constructor Description PolicyEvent(java.lang.String resourceUrn, java.lang.String message, java.lang.String color, java.lang.String policyName, java.lang.String policyPackName, java.lang.String policyPackVersion, java.lang.String policyPackVersionTag, java.lang.String enforcementLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcolor()Gets the color.java.lang.StringenforcementLevel()Gets the enforcement level, one of "warning" or "mandatory".java.lang.Stringmessage()Gets the message.java.lang.StringpolicyName()Gets the policy name.java.lang.StringpolicyPackName()Gets the policy pack name.java.lang.StringpolicyPackVersion()Gets the policy pack version.java.lang.StringpolicyPackVersionTag()Gets the policy pack version tag.java.lang.StringresourceUrn()Gets the resource URN.
-
-
-
Constructor Detail
-
PolicyEvent
public PolicyEvent(java.lang.String resourceUrn, java.lang.String message, java.lang.String color, java.lang.String policyName, java.lang.String policyPackName, java.lang.String policyPackVersion, java.lang.String policyPackVersionTag, java.lang.String enforcementLevel)
-
-
Method Detail
-
resourceUrn
@Nullable public java.lang.String resourceUrn()
Gets the resource URN.- Returns:
- the resource URN, may be null
-
message
public java.lang.String message()
Gets the message.- Returns:
- the message
-
color
public java.lang.String color()
Gets the color.- Returns:
- the color
-
policyName
public java.lang.String policyName()
Gets the policy name.- Returns:
- the policy name
-
policyPackName
public java.lang.String policyPackName()
Gets the policy pack name.- Returns:
- the policy pack name
-
policyPackVersion
public java.lang.String policyPackVersion()
Gets the policy pack version.- Returns:
- the policy pack version
-
policyPackVersionTag
public java.lang.String policyPackVersionTag()
Gets the policy pack version tag.- Returns:
- the policy pack version tag
-
enforcementLevel
public java.lang.String enforcementLevel()
Gets the enforcement level, one of "warning" or "mandatory".- Returns:
- the enforcement level
-
-