

# RulesConfigurationType


A container for rules.

## Contents


 ** Rules **   <a name="CognitoIdentity-Type-RulesConfigurationType-Rules"></a>
An array of rules. You can specify up to 25 rules per identity provider.  
Rules are evaluated in order. The first one to match specifies the role.  
Type: Array of [MappingRule](API_MappingRule.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 25 items.  
Required: Yes

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/cognito-identity-2014-06-30/RulesConfigurationType) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cognito-identity-2014-06-30/RulesConfigurationType) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cognito-identity-2014-06-30/RulesConfigurationType) 