How can I delete an Amazon VPC link for my Amazon Gateway REST API?
I'm trying to delete my Amazon Virtual Private Cloud (Amazon VPC) link for my Amazon Gateway REST API and received the following error:"Cannot delete VPC link referenced in format of [Method:Resource]."How can I resolve this?
"I'm trying to delete my Amazon Virtual Private Cloud (Amazon VPC) link for my Amazon Gateway REST API and received the following error:"Cannot delete VPC link referenced in format of [Method:Resource]."How can I resolve this?Short descriptionIf a resource using the Amazon VPC link integration is deleted, then you can't delete the link.ResolutionTo delete the Amazon VPC link, follow these steps depending on whether the REST API was or was not deployed.Deployed REST APIsSwitch the integration type from the Amazon VPC link to another type. For example, a mock integration, HTTP integration, or AWS integration type. After switching the integration type, redeploy the REST API to the same stage name that you previously deployed. Then, try deleting the Amazon VPC link again.Undeployed REST APIsSwitch the integration type from the Amazon VPC link to another type. For example, a mock integration, HTTP integration, or AWS integration type. Then, try deleting the Amazon VPC link again.Related informationTutorial: Build a REST API with API Gateway private integrationHow can I access an API Gateway private REST API in another AWS account using an interface VPC endpoint?Follow"