:doc:`EndUserMessagingSocial <../../socialmessaging>` / Client / put_whatsapp_business_account_event_destinations

************************************************
put_whatsapp_business_account_event_destinations
************************************************



.. py:method:: EndUserMessagingSocial.Client.put_whatsapp_business_account_event_destinations(**kwargs)

  

  Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PutWhatsAppBusinessAccountEventDestinations>`_  


  **Request Syntax**
  ::

    response = client.put_whatsapp_business_account_event_destinations(
        id='string',
        eventDestinations=[
            {
                'eventDestinationArn': 'string',
                'roleArn': 'string'
            },
        ]
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

    The unique identifier of your WhatsApp Business Account. WABA identifiers are formatted as ``waba-01234567890123456789012345678901``. Use `ListLinkedWhatsAppBusinessAccounts <https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListLinkedWhatsAppBusinessAccounts.html>`__ to list all WABAs and their details.

    

  
  :type eventDestinations: list
  :param eventDestinations: **[REQUIRED]** 

    An array of ``WhatsAppBusinessAccountEventDestination`` event destinations.

    

  
    - *(dict) --* 

      Contains information on the event destination.

      

    
      - **eventDestinationArn** *(string) --* **[REQUIRED]** 

        The ARN of the event destination.

        

      
      - **roleArn** *(string) --* 

        The Amazon Resource Name (ARN) of an Identity and Access Management role that is able to import phone numbers and write events.

        

      
    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`EndUserMessagingSocial.Client.exceptions.ValidationException`

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

  
  *   :py:class:`EndUserMessagingSocial.Client.exceptions.InvalidParametersException`

  
  *   :py:class:`EndUserMessagingSocial.Client.exceptions.ThrottledRequestException`

  
  *   :py:class:`EndUserMessagingSocial.Client.exceptions.InternalServiceException`

  