aws-cdk-lib.aws_cognito.NumberAttributeConstraints

interface NumberAttributeConstraints

LanguageType name
.NETAmazon.CDK.AWS.Cognito.NumberAttributeConstraints
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#NumberAttributeConstraints
Javasoftware.amazon.awscdk.services.cognito.NumberAttributeConstraints
Pythonaws_cdk.aws_cognito.NumberAttributeConstraints
TypeScript (source)aws-cdk-lib » aws_cognito » NumberAttributeConstraints

Constraints that can be applied to a custom attribute of number 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 numberAttributeConstraints: cognito.NumberAttributeConstraints = {
  max: 123,
  min: 123,
};

Properties

NameTypeDescription
max?numberMaximum value of this attribute.
min?numberMinimum value of this attribute.

max?

Type: number (optional, default: no maximum value)

Maximum value of this attribute.


min?

Type: number (optional, default: no minimum value)

Minimum value of this attribute.