How to create api connection in logic app through terraform script

Hi, i am trying to create api connection through parameter options as per here but unable to do so and getting different error

parameters = { "office365" = "resource id from Azure" } Getting Office365 is not defined`
`"parameters": { "<office365>": { "type": "String", "defaultValue": "resource id from Azure", } }, getting Inappropriate value for attribute "parameters": element "office365": string required.

Have tried multiple combinations but still getting these two error. Could you please help me out how to create API connection and associate with action?