CreateAccountAlias - Amazon Identity and Access Management
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


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

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The account alias to create.

This parameter allows (through its regex pattern) a string of characters consisting of lowercase letters, digits, and dashes. You cannot start or finish with a dash, nor can you have two dashes in a row.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^[a-z0-9]([a-z0-9]|-(?!-)){1,61}[a-z0-9]$

Required: Yes


For information about the errors that are common to all actions, see Common Errors.


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

HTTP Status Code: 409


The request was rejected because it attempted to create a resource that already exists.

HTTP Status Code: 409


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.

HTTP Status Code: 409


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

HTTP Status Code: 500



This example illustrates one usage of CreateAccountAlias.

Sample Request &AccountAlias=example-corporation &Version=2010-05-08 &AUTHPARAMS

Sample Response

<CreateAccountAliasResponse xmlns=""> <ResponseMetadata> <RequestId>36b5db08-f1b0-11df-8fbe-45274EXAMPLE</RequestId> </ResponseMetadata> </CreateAccountAliasResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: