Lists the account aliases associated with the account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in Using AWS Identity and Access Management.
You can paginate the results using the MaxItems
and Marker
parameters.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
List aliases for your account.
// Instantiate the class $iam = new AmazonIAM(array( 'key' => 'USERS_KEY', 'secret' => 'USERS_SECRET_KEY' )); $response = $iam->list_account_aliases(); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/iam.class.php | Toggle source view (6 lines) | View on GitHub