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

**********************************
put_email_monitoring_configuration
**********************************



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

  

  Creates or updates the email monitoring configuration for a specified organization.

  

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


  **Request Syntax**
  ::

    response = client.put_email_monitoring_configuration(
        OrganizationId='string',
        RoleArn='string',
        LogGroupArn='string'
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The ID of the organization for which the email monitoring configuration is set.

    

  
  :type RoleArn: string
  :param RoleArn: 

    The Amazon Resource Name (ARN) of the IAM Role associated with the email monitoring configuration. If absent, the IAM Role Arn of AWSServiceRoleForAmazonWorkMailEvents will be used.

    

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

    The Amazon Resource Name (ARN) of the CloudWatch Log group associated with the email monitoring configuration.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

  