# NumberAttributeConstraintsProperty

Struct · External

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

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

- `maxValue`: 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.

- `minValue`: string — The minimum value of an attribute that is of the number data type.
