interface NumberAttributeConstraints
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.NumberAttributeConstraints |
Java | software.amazon.awscdk.services.cognito.NumberAttributeConstraints |
Python | aws_cdk.aws_cognito.NumberAttributeConstraints |
TypeScript (source) | @aws-cdk/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 * as cognito from '@aws-cdk/aws-cognito';
const numberAttributeConstraints: cognito.NumberAttributeConstraints = {
max: 123,
min: 123,
};
Properties
Name | Type | Description |
---|---|---|
max? | number | Maximum value of this attribute. |
min? | number | Minimum 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.