Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SchemaAttributeType

import type { SchemaAttributeType } from "https://aws-api.deno.dev/v0.4/services/cognitoidentityserviceprovider.ts?docs=full";

Contains information about the schema attribute.

interface SchemaAttributeType {
AttributeDataType?: AttributeDataType | null;
DeveloperOnlyAttribute?: boolean | null;
Mutable?: boolean | null;
Name?: string | null;
NumberAttributeConstraints?: NumberAttributeConstraintsType | null;
Required?: boolean | null;
StringAttributeConstraints?: StringAttributeConstraintsType | null;
}

§Properties

§
AttributeDataType?: AttributeDataType | null
[src]

The attribute data type.

§
DeveloperOnlyAttribute?: boolean | null
[src]

Note: 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.

§
Mutable?: boolean | null
[src]

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.

§
Name?: string | null
[src]

A schema attribute of the name type.

§
NumberAttributeConstraints?: NumberAttributeConstraintsType | null
[src]

Specifies the constraints for an attribute of the number type.

§
Required?: boolean | null
[src]

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.

§
StringAttributeConstraints?: StringAttributeConstraintsType | null
[src]

Specifies the constraints for an attribute of the string type.