

# TextValidation
<a name="API_TextValidation"></a>

Validation rules for a text field.

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

 ** MaxLength **   <a name="pinpoint-Type-TextValidation-MaxLength"></a>
The maximum number of characters for the text field.  
Type: Integer  
Required: Yes

 ** MinLength **   <a name="pinpoint-Type-TextValidation-MinLength"></a>
The minimum number of characters for the text field.  
Type: Integer  
Required: Yes

 ** Pattern **   <a name="pinpoint-Type-TextValidation-Pattern"></a>
The regular expression used to validate the text field.  
Type: String  
Required: Yes

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/pinpoint-sms-voice-v2-2022-03-31/TextValidation) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/pinpoint-sms-voice-v2-2022-03-31/TextValidation) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/pinpoint-sms-voice-v2-2022-03-31/TextValidation) 