Interface CfnUserPool.ISchemaAttributeProperty
Contains information about the schema attribute.
public interface CfnUserPool.ISchemaAttributeProperty
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var schemaAttributeProperty = new SchemaAttributeProperty {
AttributeDataType = "attributeDataType",
DeveloperOnlyAttribute = false,
Mutable = false,
Name = "name",
NumberAttributeConstraints = new NumberAttributeConstraintsProperty {
MaxValue = "maxValue",
MinValue = "minValue"
},
Required = false,
StringAttributeConstraints = new StringAttributeConstraintsProperty {
MaxLength = "maxLength",
MinLength = "minLength"
}
};
Remarks
ExampleMetadata: fixture=_generated
Properties
AttributeDataType
The attribute data type.
string? AttributeDataType { get; }
Property Value
Remarks
DeveloperOnlyAttribute
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
.
object? DeveloperOnlyAttribute { get; }
Property Value
Remarks
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.
Mutable
Specifies whether the value of the attribute can be changed.
object? Mutable { get; }
Property Value
Remarks
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 .
Name
A schema attribute of the name type.
string? Name { get; }
Property Value
Remarks
NumberAttributeConstraints
Specifies the constraints for an attribute of the number type.
object? NumberAttributeConstraints { get; }
Property Value
Remarks
Required
Specifies whether a user pool attribute is required.
object? Required { get; }
Property Value
Remarks
If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
StringAttributeConstraints
Specifies the constraints for an attribute of the string type.
object? StringAttributeConstraints { get; }