# StringAttributeConstraints

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

- Source: [`aws-cognito/lib/user-pool-attr.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-attr.ts#L217)

## 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

- `maxLen`: number = 2048 — Maximum length of this attribute.

- `minLen`: number = 0 — Minimum length of this attribute.
