Link Logic App Trigger to Azure Service Bus and Service Bus Queue

Is there a way to link an Azure logic app trigger to a service bus and service bus queue like when creating the trigger via the UI? I have been trying to do that using the azurerm_logic_app_trigger_custom resource, but could not get it to work.