Iam client

This page contains some example usage for Iam. There are other resources that explain authentication and configuration.

The Iam package could be installed with Composer.

composer require async-aws/iam

Usage

Invoke a function

use AsyncAws\Iam\IamClient; use AsyncAws\Iam\Input\ListUsersRequest; $iam = new IamClient(); $users = $iam->listUsers(new ListUsersRequest([ 'PathPrefix' => '/division_engineering/subdivision_web', ])); foreach ($users as $user) { echo $user->getUserName().' '.($user->getPasswordLastUsed() ? $user->getPasswordLastUsed()->format('Y-m-d') : '').PHP_EOL; }