首先给角色授权资源
然后去查询该角色下的资源列表是空的
ManagementClient managementClient = new ManagementClient(userPoolId, userPoolSecret);
managementClient.setHost(host);
managementClient.setPublicKey(publicKey);
ListRoleAuthorizedResourcesParam param = new ListRoleAuthorizedResourcesParam(“test”)
.withNamespace(namespace)
.withResourceType(“MENU”);
try {
PaginatedAuthorizedResources res = managementClient.roles().listAuthorizedResources(param).execute();
System.out.println(res.getList());
} catch (IOException e) {
e.printStackTrace();
} catch (GraphQLException e) {
e.printStackTrace();
}