:doc:`WorkMail <../../workmail>` / Client / create_alias

************
create_alias
************



.. py:method:: WorkMail.Client.create_alias(**kwargs)

  

  Adds an alias to the set of a given member (user or group) of WorkMail.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateAlias>`_  


  **Request Syntax**
  ::

    response = client.create_alias(
        OrganizationId='string',
        EntityId='string',
        Alias='string'
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The organization under which the member (user or group) exists.

    

  
  :type EntityId: string
  :param EntityId: **[REQUIRED]** 

    The member (user or group) to which this alias is added.

    

  
  :type Alias: string
  :param Alias: **[REQUIRED]** 

    The alias to add to the member set.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.EmailAddressInUseException`

  
  *   :py:class:`WorkMail.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.EntityStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`WorkMail.Client.exceptions.MailDomainNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.MailDomainStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

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

  