AWS Identity and Access Management
API Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

CreateAccountAlias

Description

This action creates an alias for your AWS 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.

Request Parameters

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

AccountAlias

Name of the account alias to create.

Type: String

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

Required: Yes

Errors

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

EntityAlreadyExists

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

HTTP Status Code: 409

Examples

Sample Request

https://iam.amazonaws.com/
?Action=CreateAccountAlias
&AccountAlias=foocorporation
&Version=2010-05-08
&AUTHPARAMS
      

Sample Response

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