首页 > 解决方案 > awscli DescribeUserPoolClient 几乎没有返回任何内容,尽管它应该返回所有 appClient 设置的文档

问题描述

我正在尝试通过 python 代码和 cloudshell 运行 DescribeUserPoolClient ,并且此命令几乎不返回任何内容:

{
"UserPoolClient": {
    "UserPoolId": "id",
    "ClientName": "name",
    "ClientId": "id",
    "ClientSecret": "secret",
    "LastModifiedDate": "2021-05-10T14:21:24.733000+00:00",
    "CreationDate": "2021-05-10T14:21:24.733000+00:00",
    "RefreshTokenValidity": 30,
    "TokenValidityUnits": {},
    "AllowedOAuthFlows": [
        "client_credentials"
    ],
    "AllowedOAuthScopes": [
        ":write"
    ],
    "AllowedOAuthFlowsUserPoolClient": true
}

这只是它返回的参数。但是文档说应该有更多像“ExplicitAuthFlows”等。有什么与aws有关的东西,或者可能与我的访问权限有关的东西吗?

标签: amazon-web-servicesboto3amazon-cognitoaws-cli

解决方案


对于遇到相同问题的任何人:如果您默认设置了任何属性并且从未接触过它(从未编辑过),亚马逊将不会在请求中返回它们。这也适用于许多其他 aws cli 命令。也许这是常识,但我很挣扎)


推荐阅读