aws-cdk-lib.aws_cognito.StringAttributeConstraints

interface StringAttributeConstraints

LanguageType name
.NETAmazon.CDK.AWS.Cognito.StringAttributeConstraints
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#StringAttributeConstraints
Javasoftware.amazon.awscdk.services.cognito.StringAttributeConstraints
Pythonaws_cdk.aws_cognito.StringAttributeConstraints
TypeScript (source)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

NameTypeDescription
maxLen?numberMaximum length of this attribute.
minLen?numberMinimum 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.