:doc:`DataZone <../../datazone>` / Client / create_project_membership

*************************
create_project_membership
*************************



.. py:method:: DataZone.Client.create_project_membership(**kwargs)

  

  Creates a project membership in Amazon DataZone.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/CreateProjectMembership>`_  


  **Request Syntax**
  ::

    response = client.create_project_membership(
        domainIdentifier='string',
        projectIdentifier='string',
        member={
            'userIdentifier': 'string',
            'groupIdentifier': 'string'
        },
        designation='PROJECT_OWNER'|'PROJECT_CONTRIBUTOR'|'PROJECT_CATALOG_VIEWER'|'PROJECT_CATALOG_CONSUMER'|'PROJECT_CATALOG_STEWARD'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain in which project membership is created.

    

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

    The ID of the project for which this project membership was created.

    

  
  :type member: dict
  :param member: **[REQUIRED]** 

    The project member whose project membership was created.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``userIdentifier``, ``groupIdentifier``. 

  
    - **userIdentifier** *(string) --* 

      The user ID of a project member.

      

    
    - **groupIdentifier** *(string) --* 

      The ID of the group of a project member.

      

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

    The designation of the project membership.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  