Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DeleteAccountAliasCommandProtected

Deletes the specified Amazon Web Services account alias. For information about using an Amazon Web Services account alias, see Creating, deleting, and listing an Amazon Web Services account alias in the Amazon Web Services Sign-In User Guide.

Example

Use a bare-bones client and the command you need to make an API call.

import { IAMClient, DeleteAccountAliasCommand } from "@aws-sdk/client-iam"; // ES Modules import
// const { IAMClient, DeleteAccountAliasCommand } = require("@aws-sdk/client-iam"); // CommonJS import
const client = new IAMClient(config);
const input = { // DeleteAccountAliasRequest
AccountAlias: "STRING_VALUE", // required
};
const command = new DeleteAccountAliasCommand(input);
const response = await client.send(command);
// {};

Param

DeleteAccountAliasCommandInput

Returns

DeleteAccountAliasCommandOutput

See

Throws

ConcurrentModificationException (client fault)

The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.

Throws

LimitExceededException (client fault)

The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.

Throws

NoSuchEntityException (client fault)

The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.

Throws

ServiceFailureException (server fault)

The request processing has failed because of an unknown error, exception or failure.

Throws

IAMServiceException

Base exception class for all service exceptions from IAM service.

Example

To delete an account alias

// The following command removes the alias mycompany from the current AWS account:
const input = {
"AccountAlias": "mycompany"
};
const command = new DeleteAccountAliasCommand(input);
await client.send(command);
// example id: 7abeca65-04a8-4500-a890-47f1092bf766

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods