Class NumberAttribute

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cognito.NumberAttribute
All Implemented Interfaces:
ICustomAttribute, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:59.155Z") @Stability(Stable) public class NumberAttribute extends software.amazon.jsii.JsiiObject implements ICustomAttribute
The Number custom attribute type.

Example:

 UserPool.Builder.create(this, "myuserpool")
         // ...
         .standardAttributes(StandardAttributes.builder()
                 .fullname(StandardAttribute.builder()
                         .required(true)
                         .mutable(false)
                         .build())
                 .address(StandardAttribute.builder()
                         .required(false)
                         .mutable(true)
                         .build())
                 .build())
         .customAttributes(Map.of(
                 "myappid", StringAttribute.Builder.create().minLen(5).maxLen(15).mutable(false).build(),
                 "callingcode", NumberAttribute.Builder.create().min(1).max(3).mutable(true).build(),
                 "isEmployee", BooleanAttribute.Builder.create().mutable(true).build(),
                 "joinedOn", new DateTimeAttribute()))
         .build();
 
  • Constructor Details

    • NumberAttribute

      protected NumberAttribute(software.amazon.jsii.JsiiObjectRef objRef)
    • NumberAttribute

      protected NumberAttribute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • NumberAttribute

      @Stability(Stable) public NumberAttribute(@Nullable NumberAttributeProps props)
      Parameters:
      props -
    • NumberAttribute

      @Stability(Stable) public NumberAttribute()
  • Method Details