Package com.pulumi.automation.events
Class PolicyEvent
- java.lang.Object
-
- com.pulumi.automation.events.PolicyEvent
-
public class PolicyEvent extends java.lang.Object
PolicyEvent
is 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.String
color()
Gets the color.java.lang.String
enforcementLevel()
Gets the enforcement level, one of "warning" or "mandatory".java.lang.String
message()
Gets the message.java.lang.String
policyName()
Gets the policy name.java.lang.String
policyPackName()
Gets the policy pack name.java.lang.String
policyPackVersion()
Gets the policy pack version.java.lang.String
policyPackVersionTag()
Gets the policy pack version tag.java.lang.String
resourceUrn()
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
-
-