@Stability(value=Stable)
public static interface CfnUserPool.SchemaAttributeProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnUserPool.SchemaAttributeProperty.Builder
A builder for
CfnUserPool.SchemaAttributeProperty |
static class |
CfnUserPool.SchemaAttributeProperty.Jsii$Proxy
An implementation for
CfnUserPool.SchemaAttributeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnUserPool.SchemaAttributeProperty.Builder |
builder() |
default String |
getAttributeDataType()
The attribute data type.
|
default Object |
getDeveloperOnlyAttribute()
> We recommend that you use [WriteAttributes](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UserPoolClientType.html#CognitoUserPools-Type-UserPoolClientType-WriteAttributes) in the user pool client to control how attributes can be mutated for new use cases instead of using `DeveloperOnlyAttribute` .
|
default Object |
getMutable()
Specifies whether the value of the attribute can be changed.
|
default String |
getName()
A schema attribute of the name type.
|
default Object |
getNumberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
|
default Object |
getRequired()
Specifies whether a user pool attribute is required.
|
default Object |
getStringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
|
@Stability(value=Stable) @Nullable default String getAttributeDataType()
@Stability(value=Stable) @Nullable default Object getDeveloperOnlyAttribute()
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.
@Stability(value=Stable) @Nullable default Object getMutable()
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 .
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) @Nullable default Object getNumberAttributeConstraints()
@Stability(value=Stable) @Nullable default Object getRequired()
If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
@Stability(value=Stable) @Nullable default Object getStringAttributeConstraints()
@Stability(value=Stable) static CfnUserPool.SchemaAttributeProperty.Builder builder()
Copyright © 2022. All rights reserved.