lib/awspec/helper/finder/iam.rb in awspec-0.37.1 vs lib/awspec/helper/finder/iam.rb in awspec-0.37.2

- old
+ new

@@ -62,10 +62,17 @@ user_name: user_name }) res.policy_names end + def select_inine_policy_by_group_name(group_name) + res = iam_client.list_group_policies({ + group_name: group_name + }) + res.policy_names + end + def select_all_attached_policies selected = [] res = iam_client.list_policies loop do @@ -97,9 +104,15 @@ end def select_all_iam_users iam_client.list_users.map do |responce| responce.users + end.flatten + end + + def select_all_iam_groups + iam_client.list_groups.map do |responce| + responce.groups end.flatten end end end end