You cannot change the attributes of a Cognito User Pool (CUP) after it has been created.
This restriction applies no matter how you create the user pool.
Instead, set up a new user pool & specify different attributes at creation time.
This is an AWS limitation that you can't bypass, at least as of now.
From AWS Premium Support Knowledge Center :
You can't change standard user pool attributes after a user pool is created.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.