【发布时间】:2019-10-27 17:04:12
【问题描述】:
我是 AWS 和 boto 3 Python SDK 的新手。我配置了Access Key ID、Secret Access Key 和region name 到AWS CLI。
import boto3
client = boto3.client('cognito-idp')
response = client.admin_get_user(
UserPoolId='us-east-2_hJpikme9T',
Username='wasdkiller'
)
这是我的user pool 详细信息,
我提供了正确的UserPoolId,但是当我运行上面的代码示例时,CognitoIdentityProvider 中的每个函数都出现以下错误,例如我使用了admin_get_user(**kwargs)。
ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the AdminGetUser operation: User pool us-east-2_hJpikme9T does not exist.
【问题讨论】:
标签: python amazon-web-services boto3 amazon-cognito