Deletes the specified AWS account alias. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in Using AWS Identity and Access Management.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Name of the account alias to delete. [Constraints: The value must be between 3 and 63 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Delete an alias for your account.
// Instantiate the class $iam = new AmazonIAM(array( 'key' => 'USERS_KEY', 'secret' => 'USERS_SECRET_KEY' )); $response = $iam->delete_account_alias('joe'); // Success? var_dump($response->isOK());Result:
bool(true)
Source
Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub