Enabling Diagnostic Settings for Activity Logs using Azurerm Provider

Is it possible to use the Monitor diagnostic setting module to create a diagnostic setting to send Activity logs to a Log analytics workspace or Storage account. If so what should the target_resource_id be? Or is there an entire seperate module for this purpose?

@ranikamadurawe Did you find the answer to this question ? I face the same challenge currently.