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

russell
已提問 1 年前檢視次數 58 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南