aws-cdk-lib.aws_cognito.CfnUserPool.StringAttributeConstraintsProperty

interface StringAttributeConstraintsProperty

LanguageType name
.NETAmazon.CDK.AWS.Cognito.CfnUserPool.StringAttributeConstraintsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#CfnUserPool_StringAttributeConstraintsProperty
Javasoftware.amazon.awscdk.services.cognito.CfnUserPool.StringAttributeConstraintsProperty
Pythonaws_cdk.aws_cognito.CfnUserPool.StringAttributeConstraintsProperty
TypeScript aws-cdk-lib » aws_cognito » CfnUserPool » StringAttributeConstraintsProperty

The StringAttributeConstraints property type defines the string attribute constraints of an Amazon Cognito user pool.

StringAttributeConstraints is a subproperty of the SchemaAttribute property 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 stringAttributeConstraintsProperty: cognito.CfnUserPool.StringAttributeConstraintsProperty = {
  maxLength: 'maxLength',
  minLength: 'minLength',
};

Properties

NameTypeDescription
maxLength?stringThe maximum length.
minLength?stringThe minimum length.

maxLength?

Type: string (optional)

The maximum length.


minLength?

Type: string (optional)

The minimum length.