Interface CfnUserPool.SchemaAttributeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnUserPool.SchemaAttributeProperty.Jsii$Proxy
- Enclosing class:
- CfnUserPool
Example:
// 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.*; SchemaAttributeProperty schemaAttributeProperty = SchemaAttributeProperty.builder() .attributeDataType("attributeDataType") .developerOnlyAttribute(false) .mutable(false) .name("name") .numberAttributeConstraints(NumberAttributeConstraintsProperty.builder() .maxValue("maxValue") .minValue("minValue") .build()) .required(false) .stringAttributeConstraints(StringAttributeConstraintsProperty.builder() .maxLength("maxLength") .minLength("minLength") .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnUserPool.SchemaAttributeProperty
static final class
An implementation forCfnUserPool.SchemaAttributeProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The attribute data type.default Object
default Object
Specifies whether the value of the attribute can be changed.default String
getName()
A schema attribute of the name type.default Object
Specifies the constraints for an attribute of the number type.default Object
Specifies whether a user pool attribute is required.default Object
Specifies the constraints for an attribute of the string type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAttributeDataType
The attribute data type. -
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
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
A schema attribute of the name type. -
getNumberAttributeConstraints
Specifies the constraints for an attribute of the number type. -
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
Specifies the constraints for an attribute of the string type. -
builder
-