StringAttributeConstraintsType - Amazon Cognito User Pools
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

StringAttributeConstraintsType

The minimum and maximum length values of an attribute that is of the string type, for example custom:department.

This data type is part of SchemaAttributeType. It defines the length constraints on string-type attributes that you configure in CreateUserPool and UpdateUserPool, and displays the length constraints of all string-type attributes in the response to DescribeUserPool

Contents

MaxLength

The maximum length of a string attribute value. Must be a number less than or equal to 2^1023, represented as a string with a length of 131072 characters or fewer.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 131072.

Required: No

MinLength

The minimum length of a string attribute value.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 131072.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: