Skip to content
v2.274.0

StringAttributeConstraints Struct ​

Constraints that can be applied to a custom attribute of string type.

Example ​

ts
// 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 ​

maxLennumbermax_lenint | floatmaxLenNumberMaxLendoubleMaxLen*float64= 2048#
Maximum length of this attribute.
minLennumbermin_lenint | floatminLenNumberMinLendoubleMinLen*float64= 0#
Minimum length of this attribute.