EndUserMessagingSocial / Client / put_whatsapp_business_account_event_destinations

put_whatsapp_business_account_event_destinations#

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

Request Syntax

response = client.put_whatsapp_business_account_event_destinations(
    id='string',
    eventDestinations=[
        {
            'eventDestinationArn': 'string'
        },
    ]
)
Parameters:
  • id (string) –

    [REQUIRED]

    The unique identifier of your WhatsApp Business Account. WABA identifiers are formatted as waba-01234567890123456789012345678901. Use ListLinkedWhatsAppBusinessAccounts to list all WABAs and their details.

  • eventDestinations (list) –

    [REQUIRED]

    An array of WhatsAppBusinessAccountEventDestination event destinations.

    • (dict) –

      Contains information on the event destination.

      • eventDestinationArn (string) – [REQUIRED]

        The ARN of the event destination.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • EndUserMessagingSocial.Client.exceptions.ValidationException

  • EndUserMessagingSocial.Client.exceptions.AccessDeniedException

  • EndUserMessagingSocial.Client.exceptions.InvalidParametersException

  • EndUserMessagingSocial.Client.exceptions.ThrottledRequestException

  • EndUserMessagingSocial.Client.exceptions.InternalServiceException