:doc:`WorkSpaces <../../workspaces>` / Client / create_account_link_invitation

******************************
create_account_link_invitation
******************************



.. py:method:: WorkSpaces.Client.create_account_link_invitation(**kwargs)

  

  Creates the account link invitation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateAccountLinkInvitation>`_  


  **Request Syntax**
  ::

    response = client.create_account_link_invitation(
        TargetAccountId='string',
        ClientToken='string'
    )
    
  :type TargetAccountId: string
  :param TargetAccountId: **[REQUIRED]** 

    The identifier of the target account.

    

  
  :type ClientToken: string
  :param ClientToken: 

    A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation.

    

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

    
    ::

      {
          'AccountLink': {
              'AccountLinkId': 'string',
              'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED',
              'SourceAccountId': 'string',
              'TargetAccountId': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AccountLink** *(dict) --* 

        Information about the account link.

        
        

        - **AccountLinkId** *(string) --* 

          The identifier of the account link.

          
        

        - **AccountLinkStatus** *(string) --* 

          The status of the account link.

          
        

        - **SourceAccountId** *(string) --* 

          The identifier of the source account.

          
        

        - **TargetAccountId** *(string) --* 

          The identifier of the target account.

          
    
  
  **Exceptions**
  
  *   :py:class:`WorkSpaces.Client.exceptions.ValidationException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.ConflictException`

  
  *   :py:class:`WorkSpaces.Client.exceptions.InternalServerException`

  