StandardAttribute

class aws_cdk.aws_cognito.StandardAttribute(*, mutable=None, required=None)

Bases: object

__init__(*, mutable=None, required=None)

Standard attribute that can be marked as required or mutable.

Parameters
  • mutable (Optional[bool]) – Specifies whether the value of the attribute can be changed. For any user pool attribute that’s mapped to an identity provider attribute, this must be set to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute. Default: true

  • required (Optional[bool]) – Specifies whether the attribute is required upon user registration. If the attribute is required and the user does not provide a value, registration or sign-in will fail. Default: false

see :see: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#cognito-user-pools-standard-attributes stability :stability: experimental

Return type

None

Attributes

mutable

Specifies whether the value of the attribute can be changed.

For any user pool attribute that’s mapped to an identity provider attribute, this must be set to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute.

default :default: true

stability :stability: experimental

Return type

Optional[bool]

required

Specifies whether the attribute is required upon user registration.

If the attribute is required and the user does not provide a value, registration or sign-in will fail.

default :default: false

stability :stability: experimental

Return type

Optional[bool]