← 返回命令列表

Linux command

aws-cognito-idp 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create a new user pool

aws cognito-idp create-user-pool --pool-name [my-pool]

Create a user

aws cognito-idp admin-create-user --user-pool-id [pool-id] --username [user@example.com]

List all users

aws cognito-idp list-users --user-pool-id [pool-id]

Initiate authentication

aws cognito-idp admin-initiate-auth --user-pool-id [pool-id] --client-id [client-id] --auth-flow ADMIN_USER_PASSWORD_AUTH --auth-parameters USERNAME=[username],PASSWORD=[password]

Create a user pool client

aws cognito-idp create-user-pool-client --user-pool-id [pool-id] --client-name [my-app]

Set a user's password

aws cognito-idp admin-set-user-password --user-pool-id [pool-id] --username [user@example.com] --password [NewPassword123!] --permanent

Add a user to a group

aws cognito-idp admin-add-user-to-group --user-pool-id [pool-id] --username [user@example.com] --group-name [admins]

说明

aws cognito-idp is the AWS CLI interface for Amazon Cognito User Pools, a user directory service for web and mobile app authentication. It handles user registration, authentication, account recovery, and integration with external identity providers like Google, Facebook, and SAML-based systems. Cognito User Pools provides features including multi-factor authentication, password policies, email/SMS verification, and OAuth 2.0 token issuance. It can be used for both server-side administration and client-side user flows.

FAQ

What is the aws-cognito-idp command used for?

aws cognito-idp is the AWS CLI interface for Amazon Cognito User Pools, a user directory service for web and mobile app authentication. It handles user registration, authentication, account recovery, and integration with external identity providers like Google, Facebook, and SAML-based systems. Cognito User Pools provides features including multi-factor authentication, password policies, email/SMS verification, and OAuth 2.0 token issuance. It can be used for both server-side administration and client-side user flows.

How do I run a basic aws-cognito-idp example?

Run `aws cognito-idp create-user-pool --pool-name [my-pool]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-cognito-idp examples?

This page includes 7 examples for aws-cognito-idp, plus related commands for nearby Linux tasks.