interface StringAttributeConstraintsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Cognito.Mixins.CfnUserPoolPropsMixin.StringAttributeConstraintsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscognito/mixins#CfnUserPoolPropsMixin_StringAttributeConstraintsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cognito.mixins.CfnUserPoolPropsMixin.StringAttributeConstraintsProperty |
Python | aws_cdk.mixins_preview.aws_cognito.mixins.CfnUserPoolPropsMixin.StringAttributeConstraintsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cognito » mixins » CfnUserPoolPropsMixin » StringAttributeConstraintsProperty |
The minimum and maximum length values of an attribute that is of the string type, for example custom:department .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cognito_mixins } from '@aws-cdk/mixins-preview/aws-cognito';
const stringAttributeConstraintsProperty: cognito_mixins.CfnUserPoolPropsMixin.StringAttributeConstraintsProperty = {
maxLength: 'maxLength',
minLength: 'minLength',
};
Properties
| Name | Type | Description |
|---|---|---|
| max | string | The maximum length of a string attribute value. |
| min | string | The minimum length of a string attribute value. |
maxLength?
Type:
string
(optional)
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.
minLength?
Type:
string
(optional)
The minimum length of a string attribute value.

.NET
Go
Java
Python
TypeScript