Rule
A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.
Contents
- denyWhen
-
The conditions that must all be true for the rule to match.
Type: DenyWhen object
Required: Yes
- enforcementMode
-
What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.
Type: String
Valid Values:
AUDIT | ENFORCERequired: Yes
- ruleId
-
The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: