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

**************************
associate_environment_role
**************************



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

  

  Associates the environment role in Amazon DataZone.

  

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


  **Request Syntax**
  ::

    response = client.associate_environment_role(
        domainIdentifier='string',
        environmentIdentifier='string',
        environmentRoleArn='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain in which the environment role is associated.

    

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

    The ID of the Amazon DataZone environment.

    

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

    The ARN of the environment role.

    

  
  
  :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.ConflictException`

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

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

  