@Stability(value=Stable) public static final class CfnUserPool.SchemaAttributeProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnUserPool.SchemaAttributeProperty>
CfnUserPool.SchemaAttributeProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder attributeDataType(String attributeDataType)
CfnUserPool.SchemaAttributeProperty.getAttributeDataType()attributeDataType - The attribute data type.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder developerOnlyAttribute(Boolean developerOnlyAttribute)
CfnUserPool.SchemaAttributeProperty.getDeveloperOnlyAttribute()developerOnlyAttribute - > 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` .
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.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder developerOnlyAttribute(IResolvable developerOnlyAttribute)
CfnUserPool.SchemaAttributeProperty.getDeveloperOnlyAttribute()developerOnlyAttribute - > 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` .
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.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder mutable(Boolean mutable)
CfnUserPool.SchemaAttributeProperty.getMutable()mutable - 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 .this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder mutable(IResolvable mutable)
CfnUserPool.SchemaAttributeProperty.getMutable()mutable - 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 .this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder name(String name)
CfnUserPool.SchemaAttributeProperty.getName()name - A schema attribute of the name type.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder numberAttributeConstraints(IResolvable numberAttributeConstraints)
CfnUserPool.SchemaAttributeProperty.getNumberAttributeConstraints()numberAttributeConstraints - Specifies the constraints for an attribute of the number type.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder numberAttributeConstraints(CfnUserPool.NumberAttributeConstraintsProperty numberAttributeConstraints)
CfnUserPool.SchemaAttributeProperty.getNumberAttributeConstraints()numberAttributeConstraints - Specifies the constraints for an attribute of the number type.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder required(Boolean required)
CfnUserPool.SchemaAttributeProperty.getRequired()required - 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.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder required(IResolvable required)
CfnUserPool.SchemaAttributeProperty.getRequired()required - 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.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder stringAttributeConstraints(IResolvable stringAttributeConstraints)
CfnUserPool.SchemaAttributeProperty.getStringAttributeConstraints()stringAttributeConstraints - Specifies the constraints for an attribute of the string type.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty.Builder stringAttributeConstraints(CfnUserPool.StringAttributeConstraintsProperty stringAttributeConstraints)
CfnUserPool.SchemaAttributeProperty.getStringAttributeConstraints()stringAttributeConstraints - Specifies the constraints for an attribute of the string type.this@Stability(value=Stable) public CfnUserPool.SchemaAttributeProperty build()
build in interface software.amazon.jsii.Builder<CfnUserPool.SchemaAttributeProperty>CfnUserPool.SchemaAttributePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.