Class DateTimeAttribute

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

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:27.498Z") @Stability(Stable) public class DateTimeAttribute extends software.amazon.jsii.JsiiObject implements ICustomAttribute
The DateTime 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

    • DateTimeAttribute

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

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

      @Stability(Stable) public DateTimeAttribute(@Nullable CustomAttributeProps props)
      Parameters:
      props -
    • DateTimeAttribute

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