Cognito AdminCreateUser Endpoint

0

Hi, I'm trying to use the AdminCreateUser action via Cognito User Pool API with an API and not via CLI. I don't know which endpoint we use to make the AdminCreateUser request? https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html

已提問 2 年前檢視次數 341 次
1 個回答
1
已接受的答案

The API endpoints you'd need are here: https://docs.aws.amazon.com/general/latest/gr/cognito_identity.html#cognito_identity_region. You can see the requests the CLI is making by adding the --debug flag. To call that API action manually, you'd need to send a signed request with the header X-Amz-Target: AWSCognitoIdentityProviderService.AdminCreateUser.

However, if you're just wanting to call that API programatically, I'd recommend using one of the AWS SDKs, which will handle these low level requests for you. For example, in Python, you'd simply need to call the admin_create_user() function.

Ed
已回答 2 年前
  • So helpful! Thank you. I ended up creating a lambda using the SDK as you suggested and was able to make the admincreateuser calls very easily.

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

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

回答問題指南