How to allow only email as username alias with CloudFormation?
It's now possible to do this by setting the UsernameAttributes
property to an array of strings containing either email
, phone_number
or both:
Type: AWS::Cognito::UserPool
Properties:
UsernameAttributes:
- "email"
UserPoolName: "test-pool"