Interface CfnUserPool.SchemaAttributeProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnUserPool.SchemaAttributeProperty extends
Contains information about the schema attribute.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 SchemaAttributeProperty schemaAttributeProperty = SchemaAttributeProperty.builder()
  • Method Details

    • getAttributeDataType

      @Stability(Stable) @Nullable default String getAttributeDataType()
      The attribute data type.
    • getDeveloperOnlyAttribute

      @Stability(Stable) @Nullable default Object getDeveloperOnlyAttribute()

      We recommend that you use WriteAttributes in the user pool client to control how attributes can be mutated for new use cases instead of using DeveloperOnlyAttribute .

      Specifies whether the attribute type is developer only. This attribute can only be modified by an administrator. Users will not be able to modify this attribute using their access token.

    • getMutable

      @Stability(Stable) @Nullable default Object getMutable()
      Specifies whether the value of the attribute can be changed.

      For any user pool attribute that is mapped to an IdP attribute, you must set this parameter to true . Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool .

    • getName

      @Stability(Stable) @Nullable default String getName()
      A schema attribute of the name type.
    • getNumberAttributeConstraints

      @Stability(Stable) @Nullable default Object getNumberAttributeConstraints()
      Specifies the constraints for an attribute of the number type.
    • getRequired

      @Stability(Stable) @Nullable default Object getRequired()
      Specifies whether a user pool attribute is required.

      If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.

    • getStringAttributeConstraints

      @Stability(Stable) @Nullable default Object getStringAttributeConstraints()
      Specifies the constraints for an attribute of the string type.
    • builder

      @Stability(Stable) static CfnUserPool.SchemaAttributeProperty.Builder builder()
      a CfnUserPool.SchemaAttributeProperty.Builder of CfnUserPool.SchemaAttributeProperty