:doc:`DeadlineCloud <../../deadline>` / Client / associate_member_to_fleet

*************************
associate_member_to_fleet
*************************



.. py:method:: DeadlineCloud.Client.associate_member_to_fleet(**kwargs)

  

  Assigns a fleet membership level to a member.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/deadline-2023-10-12/AssociateMemberToFleet>`_  


  **Request Syntax**
  ::

    response = client.associate_member_to_fleet(
        farmId='string',
        fleetId='string',
        principalId='string',
        principalType='USER'|'GROUP',
        identityStoreId='string',
        membershipLevel='VIEWER'|'CONTRIBUTOR'|'OWNER'|'MANAGER'
    )
    
  :type farmId: string
  :param farmId: **[REQUIRED]** 

    The farm ID of the fleet to associate with the member.

    

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

    The ID of the fleet to associate with a member.

    

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

    The member's principal ID to associate with a fleet.

    

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

    The member's principal type to associate with the fleet.

    

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

    The member's identity store ID to associate with the fleet.

    

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

    The principal's membership level for the associated fleet.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DeadlineCloud.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ThrottlingException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ValidationException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.ServiceQuotaExceededException`

  