interface StringAttributeConstraints
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cognito.StringAttributeConstraints |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#StringAttributeConstraints |
![]() | software.amazon.awscdk.services.cognito.StringAttributeConstraints |
![]() | aws_cdk.aws_cognito.StringAttributeConstraints |
![]() | aws-cdk-lib » aws_cognito » StringAttributeConstraints |
Constraints that can be applied to a custom attribute of string type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const stringAttributeConstraints: cognito.StringAttributeConstraints = {
maxLen: 123,
minLen: 123,
};
Properties
Name | Type | Description |
---|---|---|
max | number | Maximum length of this attribute. |
min | number | Minimum length of this attribute. |
maxLen?
Type:
number
(optional, default: 2048)
Maximum length of this attribute.
minLen?
Type:
number
(optional, default: 0)
Minimum length of this attribute.