How do I import API Gateway API keys from a file using Terraform

I’m trying to import pre-defined API keys into my APIGW deployed using Terraform and Swagger YAML. I’m trying to use the keys with usage plan. I found terraform APIs for creating single key. But I’m trying to create a list of thousand keys. AWS CLI supports this functionality

I wan to know how I can achieve this using Terraform