Skip to content
v2.278.0

NumberAttributeConstraintsProperty Struct ​

The minimum and maximum values of an attribute that is of the number type, for example custom:age .

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 numberAttributeConstraintsProperty: cognito.CfnUserPool.NumberAttributeConstraintsProperty = {
  maxValue: 'maxValue',
  minValue: 'minValue',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

number_attribute_constraints_property = cognito.CfnUserPool.NumberAttributeConstraintsProperty(
    max_value="maxValue",
    min_value="minValue"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

NumberAttributeConstraintsProperty numberAttributeConstraintsProperty = NumberAttributeConstraintsProperty.builder()
        .maxValue("maxValue")
        .minValue("minValue")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var numberAttributeConstraintsProperty = new NumberAttributeConstraintsProperty {
    MaxValue = "maxValue",
    MinValue = "minValue"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

numberAttributeConstraintsProperty := &NumberAttributeConstraintsProperty{
	MaxValue: jsii.String("maxValue"),
	MinValue: jsii.String("minValue"),
}

Properties ​

maxValueoptionalstringmax_valueoptionalstrmaxValueoptionalStringMaxValueoptionalstringMaxValueoptional*string #
The maximum length of a number attribute value.

Must be a number less than or equal to 2^1023 , represented as a string with a length of 131072 characters or fewer.

minValueoptionalstringmin_valueoptionalstrminValueoptionalStringMinValueoptionalstringMinValueoptional*string #
The minimum value of an attribute that is of the number data type.