Amazon Cognito · JSON Structure

Cognito Idp Schema Attribute Type Structure

Contains information about the schema attribute.

Type: object Properties: 7
AuthenticationAuthorizationIdentityIdentity ProviderOAuth2OIDC

SchemaAttributeType is a JSON Structure definition published by Amazon Cognito, describing 7 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Name AttributeDataType DeveloperOnlyAttribute Mutable Required NumberAttributeConstraints StringAttributeConstraints

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "type": "object",
  "properties": {
    "Name": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CustomAttributeNameType"
        },
        {
          "description": "A schema attribute of the name type."
        }
      ]
    },
    "AttributeDataType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/AttributeDataType"
        },
        {
          "description": "The attribute data type."
        }
      ]
    },
    "DeveloperOnlyAttribute": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BooleanType"
        },
        {
          "description": "<note> <p>You should use <a href=\"https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UserPoolClientType.html#CognitoUserPools-Type-UserPoolClientType-WriteAttributes\">WriteAttributes</a> in the user pool client to control how attributes can be mutated for new use cases instead of using <code>DeveloperOnlyAttribute</code>.</p> </note> <p>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, <code>DeveloperOnlyAttribute</code> can be modified using AdminUpdateUserAttributes but can't be updated using UpdateUserAttributes.</p>"
        }
      ]
    },
    "Mutable": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BooleanType"
        },
        {
          "description": "<p>Specifies whether the value of the attribute can be changed.</p> <p>For any user pool attribute that is mapped to an IdP attribute, you must set this parameter to <code>true</code>. 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 <a href=\"https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html\">Specifying Identity Provider Attribute Mappings for Your User Pool</a>.</p>"
        }
      ]
    },
    "Required": {
      "allOf": [
        {
          "$ref": "#/components/schemas/BooleanType"
        },
        {
          "description": "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."
        }
      ]
    },
    "NumberAttributeConstraints": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NumberAttributeConstraintsType"
        },
        {
          "description": "Specifies the constraints for an attribute of the number type."
        }
      ]
    },
    "StringAttributeConstraints": {
      "allOf": [
        {
          "$ref": "#/components/schemas/StringAttributeConstraintsType"
        },
        {
          "description": "Specifies the constraints for an attribute of the string type."
        }
      ]
    }
  },
  "description": "Contains information about the schema attribute.",
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aws-cognito/refs/heads/main/json-structure/cognito-idp-schema-attribute-type-structure.json",
  "name": "SchemaAttributeType"
}