我想访问(AdminCreateUser)https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html 我在这里关注这个教程https://docs.amplify .aws/cli/auth/admin/,这个问题是它生成了一些默认函数,不包括我想要的函数 AdminCreateUser
module.exports = {
addUserToGroup,
removeUserFromGroup,
confirmUserSignUp,
disableUser,
enableUser,
getUser,
listUsers,
listGroups,
listGroupsForUser,
listUsersInGroup,
signUserOut,
};
当我更改 CognitoActions.js 文件以包含 AdminCreateUser 时,我运行
amplify update auth
What do you want to do? Create or update Admin queries API
Do you want to restrict access to the admin queries API to a specific Group: No
amplify push
我收到这个错误
Following resources failed
× An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
An error occurred during the push operation: Resource is not in the state stackUpdateComplete