@Generated(value="software.amazon.awssdk:codegen") public final class SchemaAttributeType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SchemaAttributeType.Builder,SchemaAttributeType>
A list of the user attributes and their properties in your user pool. The attribute schema contains standard
attributes, custom attributes with a custom: prefix, and developer attributes with a dev:
prefix. For more information, see User pool
attributes.
Developer-only attributes are a legacy feature of user pools, are read-only to all app clients. You can create and update developer-only attributes only with IAM-authenticated API operations. Use app client read/write permissions instead.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SchemaAttributeType.Builder |
| Modifier and Type | Method and Description |
|---|---|
AttributeDataType |
attributeDataType()
The data format of the values for your attribute.
|
String |
attributeDataTypeAsString()
The data format of the values for your attribute.
|
static SchemaAttributeType.Builder |
builder() |
Boolean |
developerOnlyAttribute()
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
mutable()
Specifies whether the value of the attribute can be changed.
|
String |
name()
The name of your user pool attribute, for example
username or custom:costcenter. |
NumberAttributeConstraintsType |
numberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
|
Boolean |
required()
Specifies whether a user pool attribute is required.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SchemaAttributeType.Builder> |
serializableBuilderClass() |
StringAttributeConstraintsType |
stringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
|
SchemaAttributeType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of your user pool attribute, for example username or custom:costcenter.
username or custom:costcenter
.public final AttributeDataType attributeDataType()
The data format of the values for your attribute.
If the service returns an enum value that is not available in the current SDK version, attributeDataType
will return AttributeDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from attributeDataTypeAsString().
AttributeDataTypepublic final String attributeDataTypeAsString()
The data format of the values for your attribute.
If the service returns an enum value that is not available in the current SDK version, attributeDataType
will return AttributeDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from attributeDataTypeAsString().
AttributeDataTypepublic final Boolean developerOnlyAttribute()
You should 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 won't be able to modify this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
You should 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 won't be able to modify this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using AdminUpdateUserAttributes but can't be updated
using UpdateUserAttributes.
public final Boolean mutable()
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute must be mutable, with a parameter value of
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.
Any user pool attribute whose value you map from an IdP attribute must be mutable, with a parameter value
of 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.
public final Boolean 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.
public final NumberAttributeConstraintsType numberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
public final StringAttributeConstraintsType stringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
public SchemaAttributeType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SchemaAttributeType.Builder,SchemaAttributeType>public static SchemaAttributeType.Builder builder()
public static Class<? extends SchemaAttributeType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.