:doc:`IAM <../../iam>` / Client / create_account_alias

********************
create_account_alias
********************



.. py:method:: IAM.Client.create_account_alias(**kwargs)

  

  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 <https://docs.aws.amazon.com/signin/latest/userguide/CreateAccountAlias.html>`__ in the *Amazon Web Services Sign-In User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/CreateAccountAlias>`_  


  **Request Syntax**
  ::

    response = client.create_account_alias(
        AccountAlias='string'
    )
    
  :type AccountAlias: string
  :param AccountAlias: **[REQUIRED]** 

    The account alias to create.

     

    This parameter allows (through its `regex pattern <http://wikipedia.org/wiki/regex>`__) 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.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IAM.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`IAM.Client.exceptions.EntityAlreadyExistsException`

  
  *   :py:class:`IAM.Client.exceptions.LimitExceededException`

  
  *   :py:class:`IAM.Client.exceptions.ServiceFailureException`

  

  **Examples**

  The following command associates the alias examplecorp to your AWS account.
  ::

    response = client.create_account_alias(
        AccountAlias='examplecorp',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  