Bug: incorrect error message using update-user-pool using aws cli

0

I called aws cognito-idp update-user-pool using the cli with the field TemporaryPasswordValidityDays in the PasswordPolicy and UnusedAccountValidityDays the AdminCreateUserConfig.

The error message was: An error occurred (InvalidParameterException) when calling the UpdateUserPool operation: Please use TemporaryPasswordValidityDays in PasswordPolicy instead of UnusedAccountValidityDays

I believe the actual error message should have been that UnusedAccountValidityDays cannot be set in AdminCreateUserConfig if TemporaryPasswordValidityDays is set in the PasswordPolicy as written here: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUserConfigType.html

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions