简体   繁体   中英

List inline policies attached to a role using boto3

I want to list all the inline policies attached to a role. I tried using role_list=client.list_attached_role_policies(RoleName=role_name) , but it returns list of managed policies only and not the inline policies. How can I get list of inline polices attached to a role using boto3.

You have to use list_role_policies :

Lists the names of the inline policies that are embedded in the specified IAM role.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM