文档 AWS SDK 示例 GitHub 存储库中还有更多 S AWS DK 示例
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
ListIdentityPools
与 AWS SDK 或 CLI 配合使用
以下代码示例演示如何使用 ListIdentityPools
。
- AWS CLI
-
列出身份池
此示例列出身份池。最多可列出 20 个身份。
命令:
aws cognito-identity list-identity-pools --max-results
20
输出:
{ "IdentityPools": [ { "IdentityPoolId": "us-west-2:11111111-1111-1111-1111-111111111111", "IdentityPoolName": "MyIdentityPool" }, { "IdentityPoolId": "us-west-2:11111111-1111-1111-1111-111111111111", "IdentityPoolName": "AnotherIdentityPool" }, { "IdentityPoolId": "us-west-2:11111111-1111-1111-1111-111111111111", "IdentityPoolName": "IdentityPoolRegionA" } ] }
-
有关 API 的详细信息,请参阅AWS CLI 命令参考ListIdentityPools
中的。
-