

# DenyWhen

The conditions of a rule. All of them must be true for the rule to match.

## Contents
<a name="API_DenyWhen_Contents"></a>

 ** allOf **   <a name="continuum-Type-DenyWhen-allOf"></a>
The conditions, from 1 to 20. All of them must be true for the rule to match.  
Type: Array of [Condition](API_Condition.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 20 items.  
Required: Yes

## See Also
<a name="API_DenyWhen_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/continuum-2022-07-26/DenyWhen) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/continuum-2022-07-26/DenyWhen) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/continuum-2022-07-26/DenyWhen) 