Пример #1
0
 def list_user_credentials(self):
     i = Iam()
     users = i.list_users()
     ret = []
     for user in users:
         creds = i.list_user_credentials(username=user['UserName'])
         for cred in creds:
             last_used = i.get_access_key_last_used(
                 access_key=cred['AccessKeyId'])
             cred.update(last_used)
             ret.append(cred)
     return ret
Пример #2
0
 def list_iam_users(self):
     i = Iam()
     ret = i.list_users()
     return ret