AWS- [iam list-role-policies] - Description
Posted on 2023-04-01 14:08 520_1351 阅读(27) 评论(0) 编辑 收藏 举报aws iam list-role-policies --role-name xxxx
list-role-policies — AWS CLI 1.27.104 Command Reference (amazon.com)
Lists the names of the inline policies that are embedded in the specified IAM role.
An IAM role can also have managed policies attached to it.
To list the managed policies that are attached to a role, use ListAttachedRolePolicies (aws iam list-attached-role-policies --role-name xxxx) .
For more information about policies, see Managed policies and inline policies in the IAM User Guide .
You can paginate the results using the MaxItems and Marker parameters.
If there are no inline policies embedded with the specified role, the operation returns an empty list.
See also: AWS API Documentation
list-role-policies is a paginated operation.
Multiple API calls may be issued in order to retrieve the entire data set of results. You can disable pagination by providing the --no-paginate argument.
When using --output text and the --query argument on a paginated response
The --query argument must extract data from the results of the following query expressions: PolicyNames
作者:一名卑微的IT民工
出处:https://www.cnblogs.com/5201351
本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。
由于博主的水平不高,文章没有高度、深度和广度,只是凑字数,不足和错误之处在所难免,希望大家能够批评指出。
博主是利用读书、参考、引用、复制和粘贴等多种方式打造成自己的文章,请原谅博主成为一个卑微的IT民工!