How to create a aws secret rotator using terraform aws provider

As par hashicorp hashicorp aws provider, rotation_lambda_arn is a required field.

However, AWS UI shows the option to which creates a rotator lambda on your behalf and uses it. I don’t see any such option in the terraform provider. Am I missing anything? Is this a missing feature or bug in the terraform provider?

I am trying to avoid creating a lambda by myself or using terraform here and I am wondering why does the provider doesn’t have option corresponding to “Create a rotation function”?