:doc:`UserNotificationsContacts <../../notificationscontacts>` / Client / activate_email_contact

**********************
activate_email_contact
**********************



.. py:method:: UserNotificationsContacts.Client.activate_email_contact(**kwargs)

  

  Activates an email contact using an activation code. This code is in the activation email sent to the email address associated with this email contact.

  

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


  **Request Syntax**
  ::

    response = client.activate_email_contact(
        arn='string',
        code='string'
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource.

    

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

    The activation code for this email contact.

     

    An email contact has a maximum of five activation attempts. Activation codes expire after 12 hours and are generated by the `SendActivationCode <https://docs.aws.amazon.com/notificationscontacts/latest/APIReference/API_SendActivationCode.html>`__ API action.

    

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

    
    ::

      {}
      
    **Response Structure**

    

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

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

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

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

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

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

  